From 4d76e5dc9bbdc9e7128f4059124e48f5af9c7848 Mon Sep 17 00:00:00 2001 From: Craig Perkins Date: Mon, 4 Nov 2024 18:33:41 -0500 Subject: [PATCH] getParent Signed-off-by: Craig Perkins --- .../search/asynchronous/SecurityEnabledRestTestCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/opensearch/search/asynchronous/SecurityEnabledRestTestCase.java b/src/test/java/org/opensearch/search/asynchronous/SecurityEnabledRestTestCase.java index 39ff95fa..5e5d5e3a 100644 --- a/src/test/java/org/opensearch/search/asynchronous/SecurityEnabledRestTestCase.java +++ b/src/test/java/org/opensearch/search/asynchronous/SecurityEnabledRestTestCase.java @@ -99,7 +99,7 @@ protected RestClient buildClient(Settings settings, HttpHost[] hosts) throws IOE } catch (URISyntaxException e) { throw new RuntimeException(e); } - Path configPath = PathUtils.get(uri).toAbsolutePath(); + Path configPath = PathUtils.get(uri).getParent().toAbsolutePath(); return new SecureRestClientBuilder(settings, configPath).build(); } else { configureHttpsClient(builder, settings);