Skip to content

Commit

Permalink
unit test fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
nonblocking committed Dec 16, 2023
1 parent 523e05b commit 9dc3fb9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ describe('MashroomStorageCollectionFilestore', () => {
const attempt1 = await storage.findOne({b: 1});
expect(attempt1?.a).toBe(1); // Old value

await new Promise((resolve) => setTimeout(resolve, checkExternalChangePeriodMs));
await new Promise((resolve) => setTimeout(resolve, checkExternalChangePeriodMs + 10));

const attempt2 = await storage.findOne({b: 1});
expect(attempt2?.a).toBe(22); // New value
Expand Down

0 comments on commit 9dc3fb9

Please sign in to comment.