Skip to content

Commit

Permalink
Null-check connection name in test
Browse files Browse the repository at this point in the history
  • Loading branch information
acogoluegnes committed Dec 18, 2024
1 parent ac8fab3 commit 979526b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -408,12 +408,12 @@ void shouldHaveSeveralLocatorsWhenSeveralUrisSpecifiedAndShouldRecoverThemIfClos
() ->
Cli.listConnections().stream()
.map(ConnectionInfo::clientProvidedName)
.filter(name -> name.contains("-locator-"))
.filter(name -> name != null && name.contains("-locator-"))
.collect(toList());
List<String> locatorConnectionNames = locatorConnectionNamesSupplier.get();
assertThat(locatorConnectionNames).hasSameSizeAs(uris);

locatorConnectionNames.forEach(connectionName -> Cli.killConnection(connectionName));
locatorConnectionNames.forEach(Cli::killConnection);

environment.streamCreator().stream(s).create();
try {
Expand Down

0 comments on commit 979526b

Please sign in to comment.