Closed chenzhiguo closed 7 months ago
I wrote a test case, but the test result did not meet expectations.
@Test public void testTryAcquire_negative() { RateLimiter limiter = RateLimiter.create(5.0); Assertions.assertFalse(limiter.tryAcquire(5000, 0, SECONDS)); }
Test success!
Test fail!
com.google.common.util.concurrent
Java 8
Okay, prefetching mode, first success, second failure
Description
I wrote a test case, but the test result did not meet expectations.
Example
Expected Behavior
Test success!
Actual Behavior
Test fail!
Packages
com.google.common.util.concurrent
Platforms
Java 8
Checklist