Skip to content

Commit ef4abbe

Browse files
committed
Fix
1 parent 240e611 commit ef4abbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugin/security/qa/security-trial/src/javaRestTest/java/org/elasticsearch/xpack/security/ssl/SslEntitlementRestIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ protected String getTestRestCluster() {
4343
public void testSslEntitlementInaccessiblePath() throws IOException {
4444
settingsProvider.put("xpack.security.transport.ssl.keystore.path", "/bad/path");
4545
expectThrows(Exception.class, () -> cluster.restart(false));
46+
AtomicBoolean found = new AtomicBoolean(false);
4647
for (int i = 0; i < cluster.getNumNodes(); i++) {
47-
AtomicBoolean found = new AtomicBoolean(false);
4848
try (InputStream log = cluster.getNodeLog(i, LogType.SERVER)) {
4949
Streams.readAllLines(log, line -> {
5050
if (line.contains(
@@ -56,8 +56,8 @@ public void testSslEntitlementInaccessiblePath() throws IOException {
5656
}
5757
});
5858
}
59-
assertThat(found.get(), is(true));
6059
}
60+
assertThat(found.get(), is(true));
6161
}
6262

6363
@Override

0 commit comments

Comments
 (0)