v0.3.3-pre.009-fix.006
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-store-postgres-lib/unit_tests/migration.rs
|
||||
// version: 4
|
||||
// version: 5
|
||||
|
||||
fn applied(version: i64, name: &str, checksum: &str) -> super::AppliedMigration {
|
||||
return super::AppliedMigration { checksum: checksum.to_owned(), name: name.to_owned(), version };
|
||||
@@ -132,3 +132,11 @@ fn pre_003_fix_001_newer_history_is_rejected_without_down_migration() {
|
||||
assert_eq!(result.err().map(|value| return value.kind()), std::option::Option::Some(crate::PostgresBackendErrorKind::SchemaNewer));
|
||||
return;
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn pre_009_fix_006_missing_applied_resource_with_autoupdate_disabled_is_migration_mismatch() {
|
||||
let error = super::schema_autoupdate_disabled_error();
|
||||
assert_eq!(error.kind(), crate::PostgresBackendErrorKind::MigrationMismatch);
|
||||
assert_eq!(error.phase(), "schema_autoupdate_disabled");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user