From 54adcc39a03cf0587938ac5f006709f45b182f7b Mon Sep 17 00:00:00 2001 From: lochana-chathura <39232462+lochana-chathura@users.noreply.github.com> Date: Fri, 22 Nov 2024 15:55:39 +0530 Subject: [PATCH] Adjust server log reading rate --- .../java/org/ballerinalang/test/context/ServerLogReader.java | 2 +- .../ballerinalang/test/packaging/ModuleExecutionFlowTests.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ballerina-test-utils/src/main/java/org/ballerinalang/test/context/ServerLogReader.java b/tests/ballerina-test-utils/src/main/java/org/ballerinalang/test/context/ServerLogReader.java index 336bea3d9221..358d566a9ff2 100644 --- a/tests/ballerina-test-utils/src/main/java/org/ballerinalang/test/context/ServerLogReader.java +++ b/tests/ballerina-test-utils/src/main/java/org/ballerinalang/test/context/ServerLogReader.java @@ -125,7 +125,7 @@ public void run() { } feedAndPrint(s); } else { - TimeUnit.MILLISECONDS.sleep(1); + TimeUnit.MICROSECONDS.sleep(400); } } String s = bufferedReader.readLine(); diff --git a/tests/jballerina-integration-test/src/test/java/org/ballerinalang/test/packaging/ModuleExecutionFlowTests.java b/tests/jballerina-integration-test/src/test/java/org/ballerinalang/test/packaging/ModuleExecutionFlowTests.java index 33dc5169ef55..dd3c455e9c90 100644 --- a/tests/jballerina-integration-test/src/test/java/org/ballerinalang/test/packaging/ModuleExecutionFlowTests.java +++ b/tests/jballerina-integration-test/src/test/java/org/ballerinalang/test/packaging/ModuleExecutionFlowTests.java @@ -32,7 +32,7 @@ * Tests order of execution of listener methods. */ public class ModuleExecutionFlowTests extends BaseTest { - public static final int TIMEOUT = 10000; + public static final int TIMEOUT = 1000; @Test public void testModuleExecutionOrder() throws BallerinaTestException {