From ebfd002ad29619f1ab4f738fa7ef585a9876fd92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Claus=20R=C3=B8rbech?= Date: Mon, 6 May 2024 10:49:51 +0200 Subject: [PATCH] Re-enable test for progress listener initial event --- packages/external/core | 2 +- .../kotlin/test/mongodb/common/ProgressListenerTests.kt | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/external/core b/packages/external/core index cde3adb764..c8297dbf72 160000 --- a/packages/external/core +++ b/packages/external/core @@ -1 +1 @@ -Subproject commit cde3adb7649d3361806dbbae0cf353b8fdc4d54e +Subproject commit c8297dbf722e4f0d0af0671a41696f48463d6ea1 diff --git a/packages/test-sync/src/commonTest/kotlin/io/realm/kotlin/test/mongodb/common/ProgressListenerTests.kt b/packages/test-sync/src/commonTest/kotlin/io/realm/kotlin/test/mongodb/common/ProgressListenerTests.kt index a57e0bdbf5..cea330df23 100644 --- a/packages/test-sync/src/commonTest/kotlin/io/realm/kotlin/test/mongodb/common/ProgressListenerTests.kt +++ b/packages/test-sync/src/commonTest/kotlin/io/realm/kotlin/test/mongodb/common/ProgressListenerTests.kt @@ -54,7 +54,6 @@ import kotlinx.coroutines.withTimeout import org.mongodb.kbson.ObjectId import kotlin.test.AfterTest import kotlin.test.BeforeTest -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFailsWith @@ -85,7 +84,6 @@ class ProgressListenerTests { } @Test - @Ignore // https://github.com/realm/realm-core/issues/7627 fun downloadProgressListener_changesOnly() = runBlocking { Realm.open(createSyncConfig(app.createUserAndLogIn())).use { uploadRealm -> // Verify that we: @@ -103,7 +101,7 @@ class ProgressListenerTests { // We are not sure when the realm actually knows of the remote changes and consider // them current, so wait a bit - delay(10.seconds) + delay(5.seconds) realm.syncSession.progressAsFlow(Direction.DOWNLOAD, ProgressMode.CURRENT_CHANGES) .run { withTimeout(TIMEOUT) { @@ -175,7 +173,6 @@ class ProgressListenerTests { } @Test - @Ignore // https://github.com/realm/realm-core/issues/7627 fun worksAfterExceptions() = runBlocking { Realm.open(createSyncConfig(app.createUserAndLogIn())).use { realm -> realm.writeSampleData(TEST_SIZE, timeout = TIMEOUT) @@ -198,7 +195,6 @@ class ProgressListenerTests { } @Test - @Ignore // https://github.com/realm/realm-core/issues/7627 fun worksAfterCancel() = runBlocking { Realm.open(createSyncConfig(app.createUserAndLogIn())).use { realm -> realm.writeSampleData(TEST_SIZE, timeout = TIMEOUT) @@ -229,7 +225,6 @@ class ProgressListenerTests { } @Test - @Ignore // https://github.com/realm/realm-core/issues/7627 fun triggerImmediatelyWhenRegistered() = runBlocking { Realm.open(createSyncConfig(app.createUserAndLogIn())).use { realm -> withTimeout(10.seconds) {