From ceccfb5546a15234c599cbe10d38b4d977f14d2b Mon Sep 17 00:00:00 2001 From: Darius Maitia Date: Mon, 16 Dec 2024 16:27:26 -0300 Subject: [PATCH] Fix flaky Liveliness test --- zenoh-kotlin/src/commonTest/kotlin/io/zenoh/LivelinessTest.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/zenoh-kotlin/src/commonTest/kotlin/io/zenoh/LivelinessTest.kt b/zenoh-kotlin/src/commonTest/kotlin/io/zenoh/LivelinessTest.kt index 599a72a7..bfd8b9b0 100644 --- a/zenoh-kotlin/src/commonTest/kotlin/io/zenoh/LivelinessTest.kt +++ b/zenoh-kotlin/src/commonTest/kotlin/io/zenoh/LivelinessTest.kt @@ -29,6 +29,7 @@ class LivelinessTest { val token = sessionA.liveliness().declareToken("test/liveliness".intoKeyExpr().getOrThrow()).getOrThrow() + Thread.sleep(1000) var receivedReply: Reply? = null sessionB.liveliness().get(keyExpr = "test/**".intoKeyExpr().getOrThrow(), callback = { reply: Reply -> receivedReply = reply