MCPcopy Create free account
hub / github.com/apache/brpc / MethodTimeOut

Method MethodTimeOut

test/brpc_grpc_protocol_unittest.cpp:80–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 }
79
80 void MethodTimeOut(::google::protobuf::RpcController* cntl_base,
81 const ::test::GrpcRequest* req,
82 ::test::GrpcResponse* res,
83 ::google::protobuf::Closure* done) {
84 brpc::ClosureGuard done_guard(done);
85 bthread_usleep(2000000 /*2s*/);
86 res->set_message(g_prefix + req->message());
87 return;
88 }
89};
90
91class GrpcTest : public ::testing::Test {

Callers 1

TEST_FFunction · 0.80

Calls 2

bthread_usleepFunction · 0.85
messageMethod · 0.45

Tested by

no test coverage detected