Add MigrationDetectorImpl tests

This commit is contained in:
Kirill Kamakin
2022-12-11 18:19:32 +01:00
parent 31089eb499
commit 7a5cbbb5a3
2 changed files with 89 additions and 1 deletions

View File

@@ -25,7 +25,7 @@ class MigrationDetectorImpl @Inject constructor(
if (lastVersion != currentVersion) {
migrationExecutors
.filter { it.migratingFrom <= lastVersion }
.filter { it.migratingFrom >= lastVersion }
.forEach { executor ->
runCatchingExceptCancel { executor.executeMigration() }
.onFailure { logger.e(it) { "Migration executor failed: $executor" } }