diff --git a/src/test/java/org/opensearch/security/sanity/tests/SecurityRestTestCase.java b/src/test/java/org/opensearch/security/sanity/tests/SecurityRestTestCase.java index d8be588cd3..8035ca641c 100644 --- a/src/test/java/org/opensearch/security/sanity/tests/SecurityRestTestCase.java +++ b/src/test/java/org/opensearch/security/sanity/tests/SecurityRestTestCase.java @@ -76,7 +76,7 @@ protected RestClient buildClient(Settings settings, HttpHost[] hosts) throws IOE if (keystore != null) { // create adminDN (super-admin) client - File file = new File(getClass().getClassLoader().getResource(CERT_FILE_DIRECTORY).getFile().); + File file = new File(getClass().getClassLoader().getResource(CERT_FILE_DIRECTORY).getFile()); Path configPath = PathUtils.get(file.toURI()).getParent().toAbsolutePath(); return new SecureRestClientBuilder(settings, configPath).setSocketTimeout(60000).build(); }