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

Flaky test: write_voidBlockIsNotTracked[macos] – io.realm.kotlin.test.common.VersionTrackingTests #1596

Closed cmelchior closed 6 months ago

cmelchior commented 7 months ago

kotlin.AssertionError: VersionInfo(main=VersionData(current=null, active=[]), notifier=VersionData(current=VersionId(version=3), active=[]), writer=VersionData(current=VersionId(version=3), active=[VersionId(version=3)])). Expected <2>, actual <1>.

From https://ci.realm.io/blue/organizations/jenkins/realm%2Frealm-kotlin/detail/PR-1595/1/tests

rorbech commented 7 months ago

Also seen in https://ci.realm.io/blue/organizations/jenkins/realm%2Frealm-kotlin/detail/PR-1587/9/tests/

cmelchior commented 6 months ago

We are pretty sure this is fixed by: https://github.com/realm/realm-kotlin/pull/1599 Due to timing issues, the GC might have already cleared the first version.