[interop test] Fix the test (#34424)

This commit is contained in:
Eugene Ostroukhov 2023-09-20 11:53:08 -07:00 committed by GitHub
parent 49bb52d7f4
commit 98ac00d7d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -242,6 +242,8 @@ TEST(PreStopHookService, StartDoRequestStop) {
status = call_hangs.WaitForStatus(absl::Milliseconds(100));
EXPECT_FALSE(status.has_value()) << status->error_message();
service.Stop();
EXPECT_EQ(call_hangs.WaitForStatus().value_or(Status::CANCELLED).error_code(),
StatusCode::ABORTED);
server->Shutdown();
server_thread.join();
}