Fix Migrator test and also add the test to build script (#896)

* Fix MigratorTest after update to Kotlin 2.0.0

* add main module's test to build script
This commit is contained in:
Tran M. Cuong
2024-06-23 05:05:44 +07:00
committed by GitHub
parent 0ce1cf22cd
commit e57638a49c
3 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ class MigratorTest {
fun initilize() {
migrationContext = MigrationContext(false)
migrationJobFactory = spyk(MigrationJobFactory(migrationContext, CoroutineScope(Dispatchers.Main + Job())))
migrationCompletedListener = spyk<() -> Unit>({})
migrationCompletedListener = spyk<MigrationCompletedListener>(block = {})
migrationStrategyFactory = spyk(MigrationStrategyFactory(migrationJobFactory, migrationCompletedListener))
}