Skip to content

Commit d4a9c2f

Browse files
committed
test condition fix
1 parent 52d6087 commit d4a9c2f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

resilience4j-ratelimiter/src/test/java/io/github/resilience4j/ratelimiter/internal/SemaphoreBasedRateLimiterImplTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ public void getPermissionInterruption() throws Exception {
185185

186186
awaitImpatiently()
187187
.atMost(2, TimeUnit.SECONDS).until(thread::getState, equalTo(RUNNABLE));
188-
then(thread.isInterrupted()).isTrue();
188+
awaitImpatiently()
189+
.atMost(100, TimeUnit.MILLISECONDS).until(thread::isInterrupted);
189190

190191
ArrayList<String> eventStrings = events.get();
191192
then(eventStrings.get(0)).contains("type=SUCCESSFUL_ACQUIRE");

0 commit comments

Comments
 (0)