Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1508,12 +1508,16 @@ public void sayHello(

executor.execute(
() -> {
try {
backendStub.sayHello(request);
} catch (Throwable t) {
error.set(t);
}
clientCallDone.countDown();
// Execute in ROOT context to avoid cancelled context propagation
io.grpc.Context.ROOT.run(
() -> {
try {
backendStub.sayHello(request);
} catch (Throwable t) {
error.set(t);
}
clientCallDone.countDown();
});
});
}
}))
Expand All @@ -1533,7 +1537,9 @@ public void sayHello(
// for the two cases due to lack of context propagation in the library case, but that isn't what
// we're testing here.

clientCallDone.await(10, SECONDS);
assertThat(clientCallDone.await(10, SECONDS))
.as("client call should complete within timeout")
.isTrue();

assertThat(error).hasValue(null);
}
Expand Down