Fix the call to NewHostPortGrpcChannel in distributed_runtime/master_test
PiperOrigin-RevId: 270757646
This commit is contained in:
parent
0f541c0290
commit
370d80aa86
@ -50,7 +50,8 @@ class MasterTest : public ::testing::Test {
|
|||||||
(*options.config.mutable_device_count())["GPU"] = 0;
|
(*options.config.mutable_device_count())["GPU"] = 0;
|
||||||
TF_CHECK_OK(test::TestCluster::MakeTestCluster(options, 2, &cluster_));
|
TF_CHECK_OK(test::TestCluster::MakeTestCluster(options, 2, &cluster_));
|
||||||
SharedGrpcChannelPtr channel_ptr;
|
SharedGrpcChannelPtr channel_ptr;
|
||||||
TF_CHECK_OK(NewHostPortGrpcChannel(cluster_->targets()[0], &channel_ptr));
|
TF_CHECK_OK(NewHostPortGrpcChannel(
|
||||||
|
cluster_->targets()[0], &options.config.rpc_options(), &channel_ptr));
|
||||||
master_ = grpc::MasterService::NewStub(channel_ptr);
|
master_ = grpc::MasterService::NewStub(channel_ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user