mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -23,7 +23,7 @@ public class SemaphoreRateLimiterTest {
|
||||
final boolean b1 = rateLimiter.tryAcquire(1);
|
||||
Assertions.assertFalse(b1);
|
||||
|
||||
ThreadUtil.sleep(310);
|
||||
ThreadUtil.sleep(400);
|
||||
|
||||
// 填充新的许可
|
||||
final boolean b2 = rateLimiter.tryAcquire(5);
|
||||
|
Reference in New Issue
Block a user