Skip to content

Commit 6ef31ef

Browse files
TheSentinel454Elrondclaude
committed
test(buzz-db): measure 0087 alone in the floor retirement tests
A 0086 baseline compared against the full migrator still fails once 0088 and 0089 sit on top, because they drop more triggers. Stop at 0087 for the retained-guard comparison, then run the rest and recheck that the floor objects stay gone. Co-authored-by: Elrond <28d6302a099e5225b02c4155ac4236e4912603df2ab08dbfc2f4fef08ce598c8@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Luke Tornquist <[email protected]>
1 parent 42d7319 commit 6ef31ef

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

‎crates/buzz-db/src/runtime/tests/floor_retirement.rs‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,15 @@ async fn migration_schema_floor_retirement_drops_parent_and_partition_clones() {
4747
.expect("count parent and partitions");
4848
assert_eq!(floor_objects(&pool).await, (partitions, 1));
4949
let before = retained_guards(&pool).await;
50-
crate::migration::run_migrations(&pool)
50+
crate::migration::run_migrations_through(&pool, 87)
5151
.await
52-
.expect("apply contract migration and retained startup checks");
52+
.expect("apply contract migration");
5353
assert_eq!(floor_objects(&pool).await, (0, 0));
5454
assert_eq!(retained_guards(&pool).await, before);
55+
crate::migration::run_migrations(&pool)
56+
.await
57+
.expect("apply later migrations and retained startup checks");
58+
assert_eq!(floor_objects(&pool).await, (0, 0));
5559
pool.close().await;
5660
}
5761

@@ -77,7 +81,7 @@ async fn migration_schema_floor_retirement_cleans_child_copies_idempotently() {
7781
.expect("install independent child copy");
7882
assert_eq!(floor_objects(&pool).await, (1, 1));
7983
let before = retained_guards(&pool).await;
80-
crate::migration::run_migrations(&pool)
84+
crate::migration::run_migrations_through(&pool, 87)
8185
.await
8286
.expect("retire independent copy");
8387
assert_eq!(floor_objects(&pool).await, (0, 0));

0 commit comments

Comments
 (0)