mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-06 10:47:25 +01: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,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 New Issue
Block a user