mirror of
https://github.com/actions/javascript-action.git
synced 2025-12-10 20:56:57 +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);
|
await wait(500);
|
||||||
const end = new Date();
|
const end = new Date();
|
||||||
var delta = Math.abs(end - start);
|
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
|
// shows how the runner will run a javascript action with env / stdout protocol
|
||||||
|
|||||||
Reference in New Issue
Block a user