Skip to content

Commit

Permalink
fix hanging test
Browse files Browse the repository at this point in the history
  • Loading branch information
cbullinger committed Feb 2, 2024
1 parent 200c16e commit 8a428aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class ReadTest: RealmTest() {
.find()
// ... work with the results
// :snippet-end:
assertEquals(2, findFrogs.size)
assertEquals(3, findFrogs.size)
val frozenFrogs = findFrogs
val frog = frozenFrogs.first()
// :snippet-start: check-frozen
Expand Down Expand Up @@ -139,7 +139,7 @@ class ReadTest: RealmTest() {
.build()
val realm = Realm.open(config)
Log.v("Successfully opened realm: ${realm.configuration.path}")
realm.write {
realm.writeBlocking {
deleteAll()
copyToRealm(ExampleRealmObject_Frog().apply {
name = "Kermit"
Expand Down Expand Up @@ -676,7 +676,7 @@ class ReadTest: RealmTest() {

// Filter posts through the parent's backlink property
// using `@links.<ObjectType>.<PropertyName>` syntax
val oldPostsByKermit = realm.query<ExampleRelationship_Post>("date < $1", today)
val oldPostsByKermit = realm.query<ExampleRelationship_Post>("date < $0", today)
.query("@links.ExampleRelationship_User.posts.name == $0", "Kermit")
.find()
assertEquals(2, oldPostsByKermit.size) // :remove:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ kermit.posts.forEach { post ->

// Filter posts through the parent's backlink property
// using `@links.<ObjectType>.<PropertyName>` syntax
val oldPostsByKermit = realm.query<Post>("date < $1", today)
val oldPostsByKermit = realm.query<Post>("date < $0", today)
.query("@links.User.posts.name == $0", "Kermit")
.find()

Expand Down

0 comments on commit 8a428aa

Please sign in to comment.