From cca682b0e3d2215793624c67d4449773798ed535 Mon Sep 17 00:00:00 2001 From: bowenlan-amzn Date: Thu, 10 Nov 2022 11:32:15 -0800 Subject: [PATCH] Fix all the compile warnings and detekt issues (#603) * Fix all the compile warnings and detekt issues Signed-off-by: bowenlan-amzn * Fix time capture is 0 Signed-off-by: bowenlan-amzn Signed-off-by: bowenlan-amzn (cherry picked from commit a21e4a60b4f76c18c9f5eb2d2db9649750c92781) --- .../org/opensearch/indexmanagement/ODFERestTestCase.kt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/test/kotlin/org/opensearch/indexmanagement/ODFERestTestCase.kt b/src/test/kotlin/org/opensearch/indexmanagement/ODFERestTestCase.kt index 6ad6b1ea9..5199fa540 100644 --- a/src/test/kotlin/org/opensearch/indexmanagement/ODFERestTestCase.kt +++ b/src/test/kotlin/org/opensearch/indexmanagement/ODFERestTestCase.kt @@ -50,15 +50,13 @@ abstract class ODFERestTestCase : OpenSearchRestTestCase() { // create adminDN (super-admin) client val uri = javaClass.classLoader.getResource("security/sample.pem").toURI() val configPath = PathUtils.get(uri).parent.toAbsolutePath() - // TODO once common utils is updated in maven, we can use this method to define hosts - // SecureRestClientBuilder(settings, configPath, hosts).setSocketTimeout(5000).build() - SecureRestClientBuilder(settings, configPath).setSocketTimeout(5000).build() + SecureRestClientBuilder(settings, configPath).setSocketTimeout(60000).build() } false -> { // create client with passed user val userName = System.getProperty("user") val password = System.getProperty("password") - SecureRestClientBuilder(hosts, isHttps(), userName, password).setSocketTimeout(5000).build() + SecureRestClientBuilder(hosts, isHttps(), userName, password).setSocketTimeout(60000).build() } } } else { @@ -68,4 +66,4 @@ abstract class ODFERestTestCase : OpenSearchRestTestCase() { return builder.build() } } -} +} \ No newline at end of file