From ab9e5bf31fd619f3dcac49b8152712663148ccda Mon Sep 17 00:00:00 2001 From: Daniel Widdis Date: Sun, 9 Jul 2023 22:13:56 -0700 Subject: [PATCH] Restore original test config Signed-off-by: Daniel Widdis --- .../jobscheduler/multinode/GetLockMultiNodeRestIT.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/opensearch/jobscheduler/multinode/GetLockMultiNodeRestIT.java b/src/test/java/org/opensearch/jobscheduler/multinode/GetLockMultiNodeRestIT.java index bdb79521..65edd5e3 100644 --- a/src/test/java/org/opensearch/jobscheduler/multinode/GetLockMultiNodeRestIT.java +++ b/src/test/java/org/opensearch/jobscheduler/multinode/GetLockMultiNodeRestIT.java @@ -23,7 +23,7 @@ import com.google.common.collect.ImmutableMap; -@OpenSearchIntegTestCase.ClusterScope(scope = OpenSearchIntegTestCase.Scope.TEST, numDataNodes = 21) +@OpenSearchIntegTestCase.ClusterScope(scope = OpenSearchIntegTestCase.Scope.SUITE, numDataNodes = 2) public class GetLockMultiNodeRestIT extends ODFERestTestCase { private String initialJobId; @@ -53,7 +53,7 @@ public void testGetLockRestAPI() throws Exception { assertEquals(TestHelpers.generateExpectedLockId(initialJobIndexName, initialJobId), initialLockId); // Submit 10 requests to generate new lock models for different job indexes - for (int i = 0; i < 10000; i++) { + for (int i = 0; i < 10; i++) { String expectedLockId = TestHelpers.generateExpectedLockId(String.valueOf(i), String.valueOf(i)); Response getLockResponse = TestHelpers.makeRequest( client(),