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 7a1b7b6072..d79f7f157a 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 @@ -744,6 +744,7 @@ class SyncedRealmTests { // Increment counter asynchronously after download initial data (1) val increment1 = async { Realm.open(config1).use { realm -> + realm.syncSession.downloadAllServerChanges(30.seconds) realm.write { realm.query() .first() @@ -760,6 +761,7 @@ class SyncedRealmTests { // Increment counter asynchronously after download initial data (2) val increment2 = async { Realm.open(config2).use { realm -> + realm.syncSession.downloadAllServerChanges(30.seconds) realm.write { realm.query() .first()