From 1bf20bce9c64a77077628cd51bf799aa7a30dd19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Claus=20R=C3=B8rbech?= Date: Thu, 4 Jul 2024 14:11:35 +0200 Subject: [PATCH] Fix migration tests --- .../realm/kotlin/test/common/migration/RealmMigrationTests.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/test-base/src/commonTest/kotlin/io/realm/kotlin/test/common/migration/RealmMigrationTests.kt b/packages/test-base/src/commonTest/kotlin/io/realm/kotlin/test/common/migration/RealmMigrationTests.kt index 58f30b5983..af0626fc2e 100644 --- a/packages/test-base/src/commonTest/kotlin/io/realm/kotlin/test/common/migration/RealmMigrationTests.kt +++ b/packages/test-base/src/commonTest/kotlin/io/realm/kotlin/test/common/migration/RealmMigrationTests.kt @@ -168,8 +168,8 @@ class RealmMigrationTests { // FIXME Can we get this to have the DataMigrationContext as receiver migration = { it.enumerate("Sample") { oldObject: DynamicRealmObject, newObject: DynamicMutableRealmObject? -> - assertEquals(initialValue, oldObject.get("stringField")) - assertEquals(initialValue, newObject?.get("stringField")) + assertEquals(initialValue, oldObject.get("stringField")) + assertEquals(initialValue, newObject?.get("stringField")) newObject?.set("stringField", migratedValue) } }