mirror of
https://git.mihon.tech/mihonapp/mihon
synced 2024-11-21 20:55:41 +03:00
Fix MigratorTest after update to io.mockk v1.13.11 (#814)
* Fix MigratorTest after update to io.mockk v1.13.11 Causing error: io.mockk.MockKException: was not can only be called on a mocked object * remove import
This commit is contained in:
parent
0870cffba1
commit
da62c7a21a
1 changed files with 2 additions and 3 deletions
|
@ -1,6 +1,5 @@
|
|||
package mihon.core.migration
|
||||
|
||||
import io.mockk.Called
|
||||
import io.mockk.slot
|
||||
import io.mockk.spyk
|
||||
import io.mockk.verify
|
||||
|
@ -59,7 +58,7 @@ class MigratorTest {
|
|||
val result = execute.await()
|
||||
assertFalse(result)
|
||||
|
||||
verify { migrationJobFactory.create(any()) wasNot Called }
|
||||
verify(exactly = 0) { migrationJobFactory.create(any()) }
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -72,7 +71,7 @@ class MigratorTest {
|
|||
val result = execute.await()
|
||||
assertFalse(result)
|
||||
|
||||
verify { migrationJobFactory.create(any()) wasNot Called }
|
||||
verify(exactly = 0) { migrationJobFactory.create(any()) }
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in a new issue