From 98ac00d7d2bc6e8e62cf5481cd4f7e18b11b2436 Mon Sep 17 00:00:00 2001 From: Eugene Ostroukhov Date: Wed, 20 Sep 2023 11:53:08 -0700 Subject: [PATCH] [interop test] Fix the test (#34424) --- test/cpp/interop/pre_stop_hook_server_test.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/cpp/interop/pre_stop_hook_server_test.cc b/test/cpp/interop/pre_stop_hook_server_test.cc index 8219e7ec717..9285f23a244 100644 --- a/test/cpp/interop/pre_stop_hook_server_test.cc +++ b/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(); }