Skip to content

Commit bec3df4

Browse files
committed
(#109) Restructured polling test
1 parent 5bef854 commit bec3df4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/util/poll-action.function.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ describe("poll-action", () => {
9393
});
9494

9595
// WHEN
96-
await timeout(updateInterval, maxDuration, action);
96+
const result = await timeout(updateInterval, maxDuration, action);
9797
const end = Date.now();
9898

9999
// THEN
100100
expect((end - start)).toBeGreaterThanOrEqual(delay);
101-
expect(action).toBeCalledTimes(4);
101+
expect(result).toBeTruthy();
102102
});
103103

104104
it("should fail after timeout if timeout < retry interval", async () => {

0 commit comments

Comments
 (0)