From 65fa711fee39d2bbf27c3b3165e3307f77c06c98 Mon Sep 17 00:00:00 2001 From: Christian Melchior Date: Wed, 1 Nov 2023 14:21:33 +0100 Subject: [PATCH] Better error messages when test times out. --- .../io/realm/kotlin/test/mongodb/common/SyncedRealmTests.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/test-sync/src/commonTest/kotlin/io/realm/kotlin/test/mongodb/common/SyncedRealmTests.kt b/packages/test-sync/src/commonTest/kotlin/io/realm/kotlin/test/mongodb/common/SyncedRealmTests.kt index 9ee6a43c5a..fe2851414b 100644 --- a/packages/test-sync/src/commonTest/kotlin/io/realm/kotlin/test/mongodb/common/SyncedRealmTests.kt +++ b/packages/test-sync/src/commonTest/kotlin/io/realm/kotlin/test/mongodb/common/SyncedRealmTests.kt @@ -739,7 +739,7 @@ class SyncedRealmTests { realm.writeBlocking { copyToRealm(masterObject) } realm.syncSession.uploadAllLocalChanges() } - assertEquals(42, counterValue.receiveOrFail()) + assertEquals(42, counterValue.receiveOrFail(), "Failed to receive 42") // Increment counter asynchronously after download initial data (1) val increment1 = async { @@ -755,7 +755,7 @@ class SyncedRealmTests { } } } - assertEquals(43, counterValue.receiveOrFail()) + assertEquals(43, counterValue.receiveOrFail(), "Failed to receive 43") // Increment counter asynchronously after download initial data (2) val increment2 = async { @@ -771,7 +771,7 @@ class SyncedRealmTests { } } } - assertEquals(44, counterValue.receiveOrFail()) + assertEquals(44, counterValue.receiveOrFail(), "Failed to receive 44") increment1.cancel() increment2.cancel()