From 3de09a0526fe7e23e8d3031daddd9417574ca258 Mon Sep 17 00:00:00 2001 From: Surya Sashank Nistala Date: Fri, 9 Aug 2024 17:07:26 -0700 Subject: [PATCH] add sleep for lock issue Signed-off-by: Surya Sashank Nistala --- .../resthandler/SourceConfigWithoutS3RestApiIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/opensearch/securityanalytics/resthandler/SourceConfigWithoutS3RestApiIT.java b/src/test/java/org/opensearch/securityanalytics/resthandler/SourceConfigWithoutS3RestApiIT.java index e79b9e989..c7bf6465b 100644 --- a/src/test/java/org/opensearch/securityanalytics/resthandler/SourceConfigWithoutS3RestApiIT.java +++ b/src/test/java/org/opensearch/securityanalytics/resthandler/SourceConfigWithoutS3RestApiIT.java @@ -602,7 +602,7 @@ public void testActivateDeactivateUrlDownloadSourceConfig() throws IOException, List findingIndices = getIocIndices(); Assert.assertEquals(1, findingIndices.size()); - Thread.sleep(100); // TODO: pass in action listener when releasing lock + Thread.sleep(10000); // TODO: pass in action listener when releasing lock // try to update default source config again to ensure operation is not accepted when enabled_for_scan is unchanged try {