Skip to content

Commit 30db45b

Browse files
committed
(#174) Removed timing validation. Covered in other tests + breaking CI too much
1 parent a17cd5c commit 30db45b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Diff for: lib/util/poll-action.function.spec.ts

-4
Original file line numberDiff line numberDiff line change
@@ -123,24 +123,20 @@ describe("poll-action", () => {
123123
// GIVEN
124124
const updateInterval = 100;
125125
const maxDuration = 200;
126-
const timerTolerance = 1.05;
127126
const action = jest.fn(() => {
128127
return new Promise((_, reject) => {
129128
setTimeout(() => reject(), 300);
130129
})
131130
});
132131

133132
// WHEN
134-
const start = Date.now();
135133
try {
136134
await timeout(updateInterval, maxDuration, action);
137135
} catch (e) {
138136
expect(e).toEqual(`Action timed out after ${maxDuration} ms`);
139137
}
140-
const end = Date.now();
141138

142139
// THEN
143140
expect(action).toBeCalledTimes(1);
144-
expect((end - start)).toBeLessThanOrEqual(maxDuration*timerTolerance);
145141
});
146142
});

0 commit comments

Comments
 (0)