Skip to content

Commit

Permalink
fix fake awaitTx
Browse files Browse the repository at this point in the history
  • Loading branch information
BillCarsonFr committed Nov 16, 2022
1 parent 891437a commit fe947ca
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ internal class FakeMonarchy {
mockkStatic("org.matrix.android.sdk.internal.util.MonarchyKt")
coEvery {
instance.awaitTransaction(any<(Realm) -> Any>())
} coAnswers {
secondArg<suspend (Realm) -> Any>().invoke(fakeRealm.instance)
} answers {
secondArg<(Realm) -> Any>().invoke(fakeRealm.instance)
}
coEvery {
instance.doWithRealm(any())
Expand Down

0 comments on commit fe947ca

Please sign in to comment.