diff --git a/packages/support/test/interacts-with-time.js b/packages/support/test/interacts-with-time.js index a36f48fa..f5915a90 100644 --- a/packages/support/test/interacts-with-time.js +++ b/packages/support/test/interacts-with-time.js @@ -12,7 +12,8 @@ test('currentTime', async () => { const time = new InteractsWithTime() const { stdout: unixTimestamp } = await exec('date +%s') - expect(time.currentTime()).toEqual(Number(unixTimestamp)) + expect(time.currentTime()).toBeLessThan(Number(unixTimestamp) + 3) + expect(time.currentTime()).toBeGreaterThan(Number(unixTimestamp) - 3) }) test('availableAt', async () => {