[interop test] Fix the test (#34424)

pull/34427/head
Eugene Ostroukhov 1 year ago committed by GitHub
parent 49bb52d7f4
commit 98ac00d7d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      test/cpp/interop/pre_stop_hook_server_test.cc

@ -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();
}

Loading…
Cancel
Save