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:
Rohan Chougule 2020-08-21 16:42:49 +05:30 committed by GitHub
parent 0a3eb676d9
commit 6abe6726bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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