mirror of
https://github.com/actions/javascript-action.git
synced 2025-04-06 15:29:40 +00:00
fix: expected time difference post wait call (#45)
* fix: expected time difference post wait call * fix the expected condition using toBeGreaterThanOrEqual
This commit is contained in:
@ -12,7 +12,7 @@ test('wait 500 ms', async () => {
|
||||
await wait(500);
|
||||
const end = new Date();
|
||||
var delta = Math.abs(end - start);
|
||||
expect(delta).toBeGreaterThan(450);
|
||||
expect(delta).toBeGreaterThanOrEqual(500);
|
||||
});
|
||||
|
||||
// shows how the runner will run a javascript action with env / stdout protocol
|
||||
|
Reference in New Issue
Block a user