Skip to content

Commit c740fbf

Browse files
authored
Merge pull request #6056 from paulbalandan/throttle-test
Fix ThrottleTest failing occasionally
2 parents 5acfe78 + e8cbbe4 commit c740fbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/system/Throttle/ThrottleTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function testDecrementsValues()
113113
$throttler->check('127.0.0.1', 60, MINUTE);
114114
$throttler->check('127.0.0.1', 60, MINUTE);
115115

116-
$this->assertSame(57, $this->cache->get('throttler_127.0.0.1'));
116+
$this->assertCloseEnough(57, $this->cache->get('throttler_127.0.0.1'));
117117
}
118118

119119
public function testReturnsFalseIfBucketEmpty()

0 commit comments

Comments
 (0)