From 8b630ae1b53d24362c5a0e4061f56a75c12eca0b Mon Sep 17 00:00:00 2001 From: Yancey1989 Date: Tue, 29 May 2018 11:52:39 +0800 Subject: [PATCH] fix unit test --- paddle/fluid/operators/detail/grpc_server_test.cc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/paddle/fluid/operators/detail/grpc_server_test.cc b/paddle/fluid/operators/detail/grpc_server_test.cc index 264e3c6671..350a7ee123 100644 --- a/paddle/fluid/operators/detail/grpc_server_test.cc +++ b/paddle/fluid/operators/detail/grpc_server_test.cc @@ -121,13 +121,10 @@ TEST(PREFETCH, DISABLED_CPU) { std::string in_var_name("ids"); std::string out_var_name("out"); - detail::RPCClient::GetInstance(); - - // detail::RPCClient::GetInstance(); - // client->Wait(); - // client->AsyncPrefetchVariable("127.0.0.1:8889", ctx, scope, in_var_name, - // out_var_name); - // client->Wait(); + auto client = detail::RPCClient::GetInstance(); + client->AsyncPrefetchVariable("127.0.0.1:8889", ctx, scope, in_var_name, + out_var_name); + client->Wait(); auto var = scope.Var(out_var_name); auto value = var->GetMutable()->value(); -- GitLab