diff --git a/packages/test-base/src/commonTest/kotlin/io/realm/kotlin/test/common/notifications/RealmObjectNotificationsTests.kt b/packages/test-base/src/commonTest/kotlin/io/realm/kotlin/test/common/notifications/RealmObjectNotificationsTests.kt index e1d50a353e..60dec6fe22 100644 --- a/packages/test-base/src/commonTest/kotlin/io/realm/kotlin/test/common/notifications/RealmObjectNotificationsTests.kt +++ b/packages/test-base/src/commonTest/kotlin/io/realm/kotlin/test/common/notifications/RealmObjectNotificationsTests.kt @@ -30,6 +30,7 @@ import io.realm.kotlin.test.util.TestChannel import io.realm.kotlin.test.util.receiveOrFail import io.realm.kotlin.test.util.update import kotlinx.coroutines.async +import kotlinx.coroutines.channels.Channel import kotlinx.coroutines.flow.first import kotlinx.coroutines.flow.onCompletion import kotlinx.coroutines.flow.single @@ -305,7 +306,7 @@ class RealmObjectNotificationsTests : RealmEntityNotificationTests { @Test override fun keyPath_topLevelProperty() = runBlocking { - val c = Channel>(1) + val c = TestChannel>() val obj: Sample = realm.write { copyToRealm(Sample()) } val observer = async { obj.asFlow(listOf("stringField")).collect {