realm / realm-kotlin

Kotlin Multiplatform and Android SDK for the Realm Mobile Database: Build Better Apps Faster.
Apache License 2.0
889 stars 52 forks source link

[GHA] Flaky test: SyncClientResetIntegrationTests ► discardUnsyncedChanges_discards_attemptRecover_pbs #1630

Open cmelchior opened 5 months ago

cmelchior commented 5 months ago

Seen on Android Emulator here: https://github.com/realm/realm-kotlin/runs/20431309864

java.lang.AssertionError: expected:<0> but was:<1>
at org.junit.Assert.fail(Assert.java:89)
at org.junit.Assert.failNotEquals(Assert.java:835)
at org.junit.Assert.assertEquals(Assert.java:120)
at kotlin.test.junit.JUnitAsserter.assertEquals(JUnitSupport.kt:32)
at kotlin.test.AssertionsKt__AssertionsKt.assertEquals(Assertions.kt:63)
at kotlin.test.AssertionsKt.assertEquals(Unknown Source:1)
at kotlin.test.AssertionsKt__AssertionsKt.assertEquals$default(Assertions.kt:62)
at kotlin.test.AssertionsKt.assertEquals$default(Unknown Source:1)
at io.realm.kotlin.test.mongodb.common.SyncClientResetIntegrationTests$discardUnsyncedChanges_discards_attemptRecover$1$1.invokeSuspend(SyncClientResetIntegrationTests.kt:539)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:32)
at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:280)
at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
at io.realm.kotlin.internal.platform.CoroutineUtilsSharedJvmKt.runBlocking(CoroutineUtilsSharedJvm.kt:22)
at io.realm.kotlin.internal.platform.CoroutineUtilsSharedJvmKt.runBlocking$default(CoroutineUtilsSharedJvm.kt:21)
at io.realm.kotlin.test.mongodb.common.SyncClientResetIntegrationTests.discardUnsyncedChanges_discards_attemptRecover(SyncClientResetIntegrationTests.kt:511)
at io.realm.kotlin.test.mongodb.common.SyncClientResetIntegrationTests.access$discardUnsyncedChanges_discards_attemptRecover(SyncClientResetIntegrationTests.kt:73)
at io.realm.kotlin.test.mongodb.common.SyncClientResetIntegrationTests$discardUnsyncedChanges_discards_attemptRecover_pbs$1.invoke(SyncClientResetIntegrationTests.kt:458)
at io.realm.kotlin.test.mongodb.common.SyncClientResetIntegrationTests$discardUnsyncedChanges_discards_attemptRecover_pbs$1.invoke(SyncClientResetIntegrationTests.kt:457)
at io.realm.kotlin.test.mongodb.common.SyncClientResetIntegrationTests$TestEnvironment.performTest(SyncClientResetIntegrationTests.kt:136)
at io.realm.kotlin.test.mongodb.common.SyncClientResetIntegrationTests$Companion.performPbsTest(SyncClientResetIntegrationTests.kt:260)
at io.realm.kotlin.test.mongodb.common.SyncClientResetIntegrationTests$Companion.performPbsTest$default(SyncClientResetIntegrationTests.kt:249)
at io.realm.kotlin.test.mongodb.common.SyncClientResetIntegrationTests.discardUnsyncedChanges_discards_attemptRecover_pbs(SyncClientResetIntegrationTests.kt:457)