Fix StatusCode

pull/24907/head
Esun Kim 4 years ago
parent 61af6e7f4f
commit f171a6689e
  1. 2
      test/cpp/server/server_request_call_test.cc

@ -138,7 +138,7 @@ TEST(ServerRequestCallTest, ShortDeadlineDoesNotCauseOkayFalse) {
ctx.set_deadline(std::chrono::system_clock::now() + ctx.set_deadline(std::chrono::system_clock::now() +
std::chrono::milliseconds(1)); std::chrono::milliseconds(1));
grpc::Status status = stub->Echo(&ctx, request, &response); grpc::Status status = stub->Echo(&ctx, request, &response);
EXPECT_EQ(DEADLINE_EXCEEDED, status.error_code()); EXPECT_EQ(StatusCode::DEADLINE_EXCEEDED, status.error_code());
gpr_log(GPR_INFO, "Success."); gpr_log(GPR_INFO, "Success.");
} }
gpr_log(GPR_INFO, "Done sending RPCs."); gpr_log(GPR_INFO, "Done sending RPCs.");

Loading…
Cancel
Save