From 666a7222b323722010e7f9737ae4fa5ad9532624 Mon Sep 17 00:00:00 2001 From: warunalakshitha Date: Sat, 12 Oct 2024 13:05:17 +0530 Subject: [PATCH] Add yieldAndRun API changes --- gradle.properties | 2 +- .../src/main/java/org/ballerina/testobserve/NativeUtils.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 041f178..3aa55fa 100644 --- a/gradle.properties +++ b/gradle.properties @@ -16,7 +16,7 @@ org.gradle.caching=true group=io.ballerina version=1.3.1-SNAPSHOT -ballerinaLangVersion=2201.10.0-20241007-143200-6b69ca80 +ballerinaLangVersion=2201.10.0-20241011-161100-51978649 githubSpotbugsVersion=6.0.18 githubJohnrengelmanShadowVersion=8.1.1 underCouchDownloadVersion=5.4.0 diff --git a/testobserve/native/src/main/java/org/ballerina/testobserve/NativeUtils.java b/testobserve/native/src/main/java/org/ballerina/testobserve/NativeUtils.java index 66b4f4a..ce140b0 100644 --- a/testobserve/native/src/main/java/org/ballerina/testobserve/NativeUtils.java +++ b/testobserve/native/src/main/java/org/ballerina/testobserve/NativeUtils.java @@ -37,6 +37,7 @@ public static void sleep(Environment env, long delayMillis) { env.yieldAndRun(() -> { try { Thread.sleep(delayMillis); + return null; } catch (InterruptedException e) { throw ErrorCreator.createError(StringUtils.fromString("error occurred during sleep"), e); }