fix: 将blocking call改为non-blocking call

pull/308/head
kaiy 3 years ago
parent 529b71c0e3
commit d4503e28e5

@ -206,7 +206,8 @@ public class QuotaCheckReactiveFilterTest {
quotaCheckReactiveFilter.filter(exchange, webFilterChain).subscribe(e -> { }, t -> { }, countDownLatch::countDown);
try {
countDownLatch.await();
} catch (InterruptedException e) {
}
catch (InterruptedException e) {
fail("Exception encountered.", e);
}
assertThat(System.currentTimeMillis() - startTimestamp).isGreaterThanOrEqualTo(1000L);

Loading…
Cancel
Save