From 050c1f051c02e387cf3f4c4884dd179f8005f9bf Mon Sep 17 00:00:00 2001 From: Steve Gravrock Date: Sun, 14 Mar 2021 12:23:17 -0700 Subject: [PATCH] Fixed intermittent test failures --- spec/core/integration/EnvSpec.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spec/core/integration/EnvSpec.js b/spec/core/integration/EnvSpec.js index a8497985..e6ccedb2 100644 --- a/spec/core/integration/EnvSpec.js +++ b/spec/core/integration/EnvSpec.js @@ -656,7 +656,8 @@ describe('Env integration', function() { }); env.execute(null, function() { - expect(duration).toBeGreaterThanOrEqual(10); + // Expect >= 9 rather than >= 10 to compensate for clock imprecision + expect(duration).toBeGreaterThanOrEqual(9); done(); }); }); @@ -682,7 +683,8 @@ describe('Env integration', function() { }); env.execute(null, function() { - expect(duration).toBeGreaterThanOrEqual(10); + // Expect >= 9 rather than >= 10 to compensate for clock imprecision + expect(duration).toBeGreaterThanOrEqual(9); done(); }); });