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:
Brad Seiler
2026-11-06 11:14:25 -05:00
parent 829c899eaa
commit 3c586a384e

View File

@@ -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");
}