mirror of
https://github.com/block/buzz.git
synced 2026-11-07 09:52:03 +00:00
Allow later migrations in listed-name upgrade tests
Co-authored-by: Honor <e0bf479eeebe47dde1e35705212a4df70616a7bc834d907ddfb18cf0405f8b1b@seiler-test.communities.public.builderlabstaging.xyz> Signed-off-by: Brad Seiler <seiler@squareup.com>
This commit is contained in:
@@ -556,7 +556,7 @@ async fn migration_schema_listed_name_index_needs_the_renames_then_builds_inline
|
||||
migration::run_migrations(&pool)
|
||||
.await
|
||||
.expect("migrate a populated table after the renames");
|
||||
assert_eq!(ledger_version(&pool).await, BEFORE_INDEX + 1);
|
||||
assert!(ledger_version(&pool).await > BEFORE_INDEX);
|
||||
let mut expected = vec![
|
||||
(kept, "square-ios".to_owned()),
|
||||
renamed(newer, "Square-iOS"),
|
||||
@@ -633,6 +633,6 @@ async fn migration_schema_listed_name_index_validates_a_prebuild() {
|
||||
.await
|
||||
.expect("accept the prebuild without waiting for channel writers");
|
||||
writer.rollback().await.unwrap();
|
||||
assert_eq!(ledger_version(&pool).await, BEFORE_INDEX + 1);
|
||||
assert!(ledger_version(&pool).await > BEFORE_INDEX);
|
||||
assert_eq!(index_oid(&pool).await, oid, "the prebuild is not replaced");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user