diff options
Diffstat (limited to 'test/tests')
| -rw-r--r-- | test/tests/TestTimer.hx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/tests/TestTimer.hx b/test/tests/TestTimer.hx index 8a22cc9..1261553 100644 --- a/test/tests/TestTimer.hx +++ b/test/tests/TestTimer.hx @@ -165,7 +165,7 @@ class TestTimer extends Test { } function almostEq(a:Float, b:Float, ?p:PosInfos):Void { - if (isMacCI()) { + if (isMacCI() || isWindowsCI()) { Assert.isTrue(Math.abs(a - b) < 0.5); return; } @@ -175,4 +175,8 @@ class TestTimer extends Test { function isMacCI():Bool { return Sys.systemName() == "Mac" && Sys.environment()["CI"] == "true"; } + + function isWindowsCI():Bool { + return Sys.systemName() == "Windows" && Sys.environment()["CI"] == "true"; + } } |
