Skip to content

Commit

Permalink
Better error messages when test times out.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Melchior committed Nov 1, 2023
1 parent 3805381 commit 65fa711
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ class SyncedRealmTests {
realm.writeBlocking { copyToRealm(masterObject) }
realm.syncSession.uploadAllLocalChanges()
}
assertEquals(42, counterValue.receiveOrFail())
assertEquals(42, counterValue.receiveOrFail(), "Failed to receive 42")

// Increment counter asynchronously after download initial data (1)
val increment1 = async {
Expand All @@ -755,7 +755,7 @@ class SyncedRealmTests {
}
}
}
assertEquals(43, counterValue.receiveOrFail())
assertEquals(43, counterValue.receiveOrFail(), "Failed to receive 43")

// Increment counter asynchronously after download initial data (2)
val increment2 = async {
Expand All @@ -771,7 +771,7 @@ class SyncedRealmTests {
}
}
}
assertEquals(44, counterValue.receiveOrFail())
assertEquals(44, counterValue.receiveOrFail(), "Failed to receive 44")

increment1.cancel()
increment2.cancel()
Expand Down

0 comments on commit 65fa711

Please sign in to comment.