Skip to content

Commit

Permalink
Fix migration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rorbech committed Jul 4, 2024
1 parent 3048570 commit 1bf20bc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>("stringField"))
assertEquals(initialValue, newObject?.get<String>("stringField"))
newObject?.set("stringField", migratedValue)
}
}
Expand Down

0 comments on commit 1bf20bc

Please sign in to comment.