syncer: fix test

This commit is contained in:
Girish Ramakrishnan
2025-08-14 16:16:58 +05:30
parent 942e595444
commit 08c2e989fa
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -24,9 +24,9 @@ describe('Syncer', function () {
});
async function getChanges(dataLayout) {
const changes = await syncer.sync(dataLayout, gCacheFile);
syncer.finalize(gCacheFile);
return changes.delQueue.concat(changes.addQueue);
const { delQueue, addQueue, integrityMap } = await syncer.sync(dataLayout, gCacheFile);
await syncer.finalize(integrityMap, gCacheFile);
return delQueue.concat(addQueue);
}
it('missing cache - removes remote dir', async function () {