Skip to content

Commit

Permalink
fix GracefulShutdownIT
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielLiu1123 committed Oct 27, 2024
1 parent df06c4e commit a03f62b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ void testGracefulShutdown(CapturedOutput output) throws InterruptedException {
var stub = createStub(inProcessName, SimpleServiceBlockingStub.class);
new Thread(() -> stub.unaryRpc(SimpleRequest.getDefaultInstance())).start();

Thread.sleep(100);
Thread.sleep(500);
}

Matcher matcher =
Expand All @@ -48,8 +48,8 @@ void testGracefulShutdown(CapturedOutput output) throws InterruptedException {
}
long time = Long.parseLong(matcher.group(1));

// 1000 - 100
assertThat(time).isGreaterThanOrEqualTo(900);
// 1000 - 500
assertThat(time).isGreaterThanOrEqualTo(500);
}

@Configuration(proxyBeanMethods = false)
Expand Down

0 comments on commit a03f62b

Please sign in to comment.