Merge branch 'main' into CEC-5672

This commit is contained in:
Paul Adamsen
2024-01-30 17:08:26 -05:00
committed by GitHub
7 changed files with 52 additions and 52 deletions

View File

@@ -14,7 +14,7 @@ describe("Polling", () => {
const poll = new Polling(callback, 100);
const spy = jest.spyOn(poll, "callback");
poll.start();
await sleep(500);
await sleep(501); // +1 for safety
poll.end();
await sleep(500);
expect(spy).toHaveBeenCalledTimes(5);
@@ -25,7 +25,7 @@ describe("Polling", () => {
const poll = new Polling(callback, 100);
const spy = jest.spyOn(poll, "callback");
poll.start();
await sleep(1000);
await sleep(1001); // +1 for safety
expect(spy).toHaveBeenCalledTimes(5);
});
});