Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ public StreamObserver<BeamFnApi.LogEntry.List> logging(

ManagedChannel channel = InProcessChannelBuilder.forName(apiServiceDescriptor.getUrl()).build();
try {
thrown.expectMessage("Logging stream terminated unexpectedly");
BeamFnLoggingClient client =
BeamFnLoggingClient.createAndStart(
PipelineOptionsFactory.fromArgs(
Expand All @@ -543,7 +544,6 @@ public StreamObserver<BeamFnApi.LogEntry.List> logging(
apiServiceDescriptor,
(Endpoints.ApiServiceDescriptor descriptor) -> channel);

thrown.expectMessage("Logging stream terminated unexpectedly");
client.terminationFuture().get();
} finally {
// Verify that after termination, log levels are reset.
Expand Down
Loading