Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
arunpandianp committed Sep 20, 2024
1 parent 9cb292a commit 2e6fbf6
Showing 1 changed file with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@
import org.apache.beam.runners.dataflow.worker.windmill.client.WindmillStream.GetDataStream;
import org.apache.beam.runners.dataflow.worker.windmill.client.WindmillStream.GetWorkStream;
import org.apache.beam.runners.dataflow.worker.windmill.client.grpc.stubs.WindmillChannelFactory;
import org.apache.beam.runners.dataflow.worker.windmill.client.grpc.stubs.WindmillStubFactory;
import org.apache.beam.runners.dataflow.worker.windmill.client.grpc.stubs.WindmillStubFactoryFactory;
import org.apache.beam.runners.dataflow.worker.windmill.testing.FakeWindmillStubFactory;
import org.apache.beam.runners.dataflow.worker.windmill.testing.FakeWindmillStubFactoryFactory;
import org.apache.beam.vendor.grpc.v1p60p1.com.google.protobuf.ByteString;
Expand Down Expand Up @@ -113,6 +111,7 @@
"rawtypes", // TODO(https://github.com/apache/beam/issues/20447)
})
public class GrpcWindmillServerTest {

private static final Logger LOG = LoggerFactory.getLogger(GrpcWindmillServerTest.class);
private static final int STREAM_CHUNK_SIZE = 2 << 20;
private final long clientId = 10L;
Expand Down Expand Up @@ -217,15 +216,8 @@ public <ReqT, RespT> ClientCall<ReqT, RespT> interceptCall(
this.client =
GrpcWindmillServer.newApplianceTestInstance(
inprocessChannel,
new WindmillStubFactoryFactory() {
private final WindmillStubFactory windmillStubFactory =
new FakeWindmillStubFactory(() -> (ManagedChannel) inprocessChannel);

@Override
public WindmillStubFactory makeWindmillStubFactory(boolean useIsolatedChannels) {
return windmillStubFactory;
}
});
new FakeWindmillStubFactoryFactory(
new FakeWindmillStubFactory(() -> (ManagedChannel) inprocessChannel)));

Windmill.GetWorkResponse response1 = client.getWork(GetWorkRequest.getDefaultInstance());
Windmill.GetWorkResponse response2 = client.getWork(GetWorkRequest.getDefaultInstance());
Expand Down

0 comments on commit 2e6fbf6

Please sign in to comment.