Skip to content

Commit 8b630ae

Browse files
committed
fix unit test
1 parent 6b91d40 commit 8b630ae

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

paddle/fluid/operators/detail/grpc_server_test.cc

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,10 @@ TEST(PREFETCH, DISABLED_CPU) {
121121
std::string in_var_name("ids");
122122
std::string out_var_name("out");
123123

124-
detail::RPCClient::GetInstance();
125-
126-
// detail::RPCClient::GetInstance();
127-
// client->Wait();
128-
// client->AsyncPrefetchVariable("127.0.0.1:8889", ctx, scope, in_var_name,
129-
// out_var_name);
130-
// client->Wait();
124+
auto client = detail::RPCClient::GetInstance();
125+
client->AsyncPrefetchVariable("127.0.0.1:8889", ctx, scope, in_var_name,
126+
out_var_name);
127+
client->Wait();
131128

132129
auto var = scope.Var(out_var_name);
133130
auto value = var->GetMutable<framework::SelectedRows>()->value();

0 commit comments

Comments
 (0)