File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/test/java/com/rabbitmq/stream/impl Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -408,12 +408,12 @@ void shouldHaveSeveralLocatorsWhenSeveralUrisSpecifiedAndShouldRecoverThemIfClos
408
408
() ->
409
409
Cli .listConnections ().stream ()
410
410
.map (ConnectionInfo ::clientProvidedName )
411
- .filter (name -> name .contains ("-locator-" ))
411
+ .filter (name -> name != null && name .contains ("-locator-" ))
412
412
.collect (toList ());
413
413
List <String > locatorConnectionNames = locatorConnectionNamesSupplier .get ();
414
414
assertThat (locatorConnectionNames ).hasSameSizeAs (uris );
415
415
416
- locatorConnectionNames .forEach (connectionName -> Cli . killConnection ( connectionName ) );
416
+ locatorConnectionNames .forEach (Cli :: killConnection );
417
417
418
418
environment .streamCreator ().stream (s ).create ();
419
419
try {
You can’t perform that action at this time.
0 commit comments