Skip to content

Commit c62169e

Browse files
committed
Changed async timer tests to round up to the nearest millisecond.
1 parent e5bab5d commit c62169e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/Unit/AsyncExponentialBackoffExceptionHandlerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ public function test()
2323
}
2424
});
2525

26-
self::assertGreaterThan($start + 1.5, microtime(true));
26+
self::assertGreaterThan($start + 1.499, microtime(true));
2727
}
2828
}

test/Unit/AsyncMilliSleepExceptionHandlerTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function testValue()
2121
yield $handler();
2222
});
2323

24-
self::assertGreaterThan($start + 1, microtime(true));
24+
self::assertGreaterThan($start + .999, microtime(true));
2525
}
2626

2727
public function testSeries()
@@ -38,6 +38,6 @@ public function testSeries()
3838
}
3939
});
4040

41-
self::assertGreaterThan($start + 1, microtime(true));
41+
self::assertGreaterThan($start + .999, microtime(true));
4242
}
4343
}

0 commit comments

Comments
 (0)