Skip to content

Commit

Permalink
Merge branch '5.4' into 6.0
Browse files Browse the repository at this point in the history
* 5.4:
  Add completion for debug:twig
  [SecurityBundle] Fix tests
  [RateLimiter] Increase delta in limiter tests
  [Console][AppVeyor] Fix EOL in the tests
  [PasswordHasher] Fix completion tests
  • Loading branch information
derrabus committed Nov 1, 2021
2 parents 5abc588 + c21c697 commit 10d1b65
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Tests/Policy/FixedWindowLimiterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function testWaitIntervalOnConsumeOverLimit()

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

public function testWrongWindowFromCache()
Expand Down
2 changes: 1 addition & 1 deletion Tests/Policy/SlidingWindowLimiterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function testWaitIntervalOnConsumeOverLimit()

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

public function testReserve()
Expand Down
2 changes: 1 addition & 1 deletion Tests/Policy/TokenBucketLimiterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function testWaitIntervalOnConsumeOverLimit()

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

public function testWrongWindowFromCache()
Expand Down

0 comments on commit 10d1b65

Please sign in to comment.