-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix flaky failure in CI for RichErrorModelTest #292
Conversation
@@ -94,6 +92,8 @@ public void testManualApproach() throws Exception { | |||
} finally { | |||
if (client != null) client.close(); | |||
sys.terminate(); | |||
serverBinding.unbind(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we waiting on the unbind future too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@@ -52,8 +53,7 @@ private CompletionStage<ServerBinding> run(ActorSystem sys) throws Exception { | |||
public void testManualApproach() throws Exception { | |||
Config conf = ConfigFactory.load(); | |||
ActorSystem sys = ActorSystem.create("HelloWorld", conf); | |||
run(sys); | |||
|
|||
ServerBinding serverBinding = run(sys).toCompletableFuture().get(60, TimeUnit.SECONDS); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think 3 seconds should enough
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agree, but it's a timeout, so it's no problem if it's a little generous
@@ -52,8 +53,7 @@ private CompletionStage<ServerBinding> run(ActorSystem sys) throws Exception { | |||
public void testManualApproach() throws Exception { | |||
Config conf = ConfigFactory.load(); | |||
ActorSystem sys = ActorSystem.create("HelloWorld", conf); | |||
run(sys); | |||
|
|||
ServerBinding serverBinding = run(sys).toCompletableFuture().get(60, TimeUnit.SECONDS); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agree, but it's a timeout, so it's no problem if it's a little generous
motivation
close #291
client should wait http server start, and need to stop http finally.
how
add wait and stop