8000 minor #47337 [Clock] relax some assertions to transient NativeClock t… · symfony/symfony@5b9c1c3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5b9c1c3

Browse files
committed
minor #47337 [Clock] relax some assertions to transient NativeClock tests (xabbuh)
This PR was merged into the 6.2 branch. Discussion ---------- [Clock] relax some assertions to transient NativeClock tests | Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | Commits ------- 2e2c3e7 relax some assertions to transient NativeClock tests
2 parents 98b7cfc + 2e2c3e7 commit 5b9c1c3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Symfony/Component/Clock/Tests/NativeClockTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,8 @@ public function testSleep()
5353
usleep(10);
5454
$after = microtime(true);
5555

56-
$this->assertGreaterThan($before + 1.5, $now);
56+
$this->assertGreaterThanOrEqual($before + 1.5, $now);
5757
$this->assertLessThan($after, $now);
58-
$this->assertLessThan(1.9, $now - $before);
5958
$this->assertSame($tz, $clock->now()->getTimezone()->getName());
6059
}
6160

0 commit comments

Comments
 (0)
0