test: track current migration version in dry run

This commit is contained in:
2026-08-25 10:29:48 +09:00
parent f94d829bf8
commit 87e160a01a
+4 -1
View File
@@ -9734,7 +9734,10 @@ mod tests {
let before = std::fs::read(&path).unwrap(); let before = std::fs::read(&path).unwrap();
let plan = SqliteWorkspaceStore::migration_plan(&path).unwrap(); let plan = SqliteWorkspaceStore::migration_plan(&path).unwrap();
assert_eq!(plan.current_schema_version, 43); assert_eq!(
plan.current_schema_version,
i64::from(MIGRATIONS.last().expect("at least one migration").version)
);
assert!(!plan.migration_required); assert!(!plan.migration_required);
assert!(plan.repairs.is_empty()); assert!(plan.repairs.is_empty());
assert_eq!(std::fs::read(&path).unwrap(), before); assert_eq!(std::fs::read(&path).unwrap(), before);