mirror of
https://github.com/mihonapp/mihon.git
synced 2025-03-24 21:35:29 +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
|
package mihon.core.migration
|
||||||
|
|
||||||
import io.mockk.Called
|
|
||||||
import io.mockk.slot
|
import io.mockk.slot
|
||||||
import io.mockk.spyk
|
import io.mockk.spyk
|
||||||
import io.mockk.verify
|
import io.mockk.verify
|
||||||
@ -59,7 +58,7 @@ class MigratorTest {
|
|||||||
val result = execute.await()
|
val result = execute.await()
|
||||||
assertFalse(result)
|
assertFalse(result)
|
||||||
|
|
||||||
verify { migrationJobFactory.create(any()) wasNot Called }
|
verify(exactly = 0) { migrationJobFactory.create(any()) }
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -72,7 +71,7 @@ class MigratorTest {
|
|||||||
val result = execute.await()
|
val result = execute.await()
|
||||||
assertFalse(result)
|
assertFalse(result)
|
||||||
|
|
||||||
verify { migrationJobFactory.create(any()) wasNot Called }
|
verify(exactly = 0) { migrationJobFactory.create(any()) }
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user