Skip to content

Commit 5be74cf

Browse files
authored
Reenable ignored progress listener tests (#7344)
1 parent e2aff81 commit 5be74cf

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

realm/realm-library/src/androidTestObjectServer/kotlin/io/realm/ProgressListenerTests.kt

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,24 @@ import io.realm.log.RealmLog
2828
import io.realm.mongodb.User
2929
import io.realm.mongodb.close
3030
import io.realm.mongodb.registerUserAndLogin
31-
import io.realm.mongodb.sync.*
31+
import io.realm.mongodb.sync.Progress
32+
import io.realm.mongodb.sync.ProgressListener
33+
import io.realm.mongodb.sync.ProgressMode
34+
import io.realm.mongodb.sync.SyncConfiguration
35+
import io.realm.mongodb.sync.SyncSession
36+
import io.realm.mongodb.sync.testRealmExists
37+
import io.realm.mongodb.sync.testSchema
38+
import io.realm.mongodb.sync.testSessionStopPolicy
3239
import io.realm.rule.BlockingLooperThread
3340
import org.bson.types.ObjectId
3441
import org.junit.After
35-
import org.junit.Assert.*
42+
import org.junit.Assert.assertEquals
43+
import org.junit.Assert.assertFalse
44+
import org.junit.Assert.assertTrue
45+
import org.junit.Assert.fail
3646
import org.junit.Before
37-
import org.junit.Ignore
3847
import org.junit.Test
3948
import org.junit.runner.RunWith
40-
import java.lang.IllegalStateException
4149
import java.util.*
4250
import java.util.concurrent.CountDownLatch
4351
import java.util.concurrent.TimeUnit
@@ -284,7 +292,6 @@ class ProgressListenerTests {
284292
}
285293

286294
@Test
287-
@Ignore("FIXME: Tracked by https://github.com/realm/realm-java/issues/6976")
288295
fun addProgressListener_triggerImmediatelyWhenRegistered_waitForInitialRemoteData() {
289296
val user = app.registerUserAndLogin(TestHelper.getRandomEmail(), "123456")
290297
val config = SyncConfiguration.Builder(user, getTestPartitionValue())
@@ -301,7 +308,6 @@ class ProgressListenerTests {
301308
}
302309

303310
@Test
304-
@Ignore("FIXME: Flacky: Tracked by https://github.com/realm/realm-java/issues/6976")
305311
fun progressListenersWorkWhenUsingWaitForInitialRemoteData() = looperThread.runBlocking {
306312
val username = UUID.randomUUID().toString()
307313
val password = "password"

0 commit comments

Comments
 (0)