File tree Expand file tree Collapse file tree
sdks/java/harness/src/test/java/org/apache/beam/fn/harness/logging Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -532,6 +532,7 @@ public StreamObserver<BeamFnApi.LogEntry.List> logging(
532532
533533 ManagedChannel channel = InProcessChannelBuilder .forName (apiServiceDescriptor .getUrl ()).build ();
534534 try {
535+ thrown .expectMessage ("Logging stream terminated unexpectedly" );
535536 BeamFnLoggingClient client =
536537 BeamFnLoggingClient .createAndStart (
537538 PipelineOptionsFactory .fromArgs (
@@ -543,7 +544,6 @@ public StreamObserver<BeamFnApi.LogEntry.List> logging(
543544 apiServiceDescriptor ,
544545 (Endpoints .ApiServiceDescriptor descriptor ) -> channel );
545546
546- thrown .expectMessage ("Logging stream terminated unexpectedly" );
547547 client .terminationFuture ().get ();
548548 } finally {
549549 // Verify that after termination, log levels are reset.
You can’t perform that action at this time.
0 commit comments