From 148286d8c30b4fba6f4799662373b8c9caa4d3c0 Mon Sep 17 00:00:00 2001 From: hindujaB Date: Fri, 5 Apr 2024 16:09:52 +0530 Subject: [PATCH] Fix runtime api test --- .../java/org/ballerinalang/test/runtime/api/RuntimeAPITest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/runtime/api/RuntimeAPITest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/runtime/api/RuntimeAPITest.java index 3017935e814b..75d0c597bb5a 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/runtime/api/RuntimeAPITest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/runtime/api/RuntimeAPITest.java @@ -103,6 +103,7 @@ public void testRuntimeManagementAPI() { Thread thread1 = new Thread(() -> { try { CompileResult strandResult = BCompileUtil.compile("test-src/runtime/api/runtime_mgt"); + Thread.sleep(5000); BRunUtil.runOnSchedule(strandResult, "main", scheduler); } catch (Throwable e) { exceptionRef.set(e);