Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b7fc0d5

Browse filesBrowse files
committed
Merge branch '5.3' into 5.4
* 5.3: [RateLimiter] Increase delta in limiter tests
2 parents 984cd83 + f3c19ed commit b7fc0d5
Copy full SHA for b7fc0d5

File tree

3 files changed

+3
-3
lines changed
Filter options

3 files changed

+3
-3
lines changed

‎src/Symfony/Component/RateLimiter/Tests/Policy/FixedWindowLimiterTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/RateLimiter/Tests/Policy/FixedWindowLimiterTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function testWaitIntervalOnConsumeOverLimit()
8282

8383
$start = microtime(true);
8484
$rateLimit->wait(); // wait 1 minute
85-
$this->assertEqualsWithDelta($start + 60, microtime(true), 0.5);
85+
$this->assertEqualsWithDelta($start + 60, microtime(true), 1);
8686
}
8787

8888
public function testWrongWindowFromCache()

‎src/Symfony/Component/RateLimiter/Tests/Policy/SlidingWindowLimiterTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/RateLimiter/Tests/Policy/SlidingWindowLimiterTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function testWaitIntervalOnConsumeOverLimit()
6666

6767
$start = microtime(true);
6868
$rateLimit->wait(); // wait 12 seconds
69-
$this->assertEqualsWithDelta($start + 12, microtime(true), 0.5);
69+
$this->assertEqualsWithDelta($start + 12, microtime(true), 1);
7070
}
7171

7272
public function testReserve()

‎src/Symfony/Component/RateLimiter/Tests/Policy/TokenBucketLimiterTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/RateLimiter/Tests/Policy/TokenBucketLimiterTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function testWaitIntervalOnConsumeOverLimit()
102102

103103
$start = microtime(true);
104104
$rateLimit->wait(); // wait 1 second
105-
$this->assertEqualsWithDelta($start + 1, microtime(true), 0.5);
105+
$this->assertEqualsWithDelta($start + 1, microtime(true), 1);
106106
}
107107

108108
public function testWrongWindowFromCache()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.