From 4a3ee15016b2ba5e6561e6f0819600ddf1d795b8 Mon Sep 17 00:00:00 2001 From: Brad Seiler Date: Mon, 9 Nov 2026 16:31:11 -0800 Subject: [PATCH] test(db): keep invite repair communities valid under schema constraints Co-authored-by: Honor Signed-off-by: Brad Seiler --- .../src/store/relay_invite/upgrade_postgres_tests.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/crates/buzz-db/src/store/relay_invite/upgrade_postgres_tests.rs b/crates/buzz-db/src/store/relay_invite/upgrade_postgres_tests.rs index 66fb88d701..7b94eb2d2f 100644 --- a/crates/buzz-db/src/store/relay_invite/upgrade_postgres_tests.rs +++ b/crates/buzz-db/src/store/relay_invite/upgrade_postgres_tests.rs @@ -189,13 +189,9 @@ async fn legacy_fixture() -> (PgPool, Vec) { let issuer = [1u8; 32]; let mut cases = Vec::new(); - // Exercise cached successor lookups and the smallest valid UUID. + // Twelve valid communities exercise cached successor lookups. for index in 0u8..12 { - let community = if index == 0 { - Uuid::nil() - } else { - Uuid::new_v4() - }; + let community = Uuid::new_v4(); sqlx::query("INSERT INTO communities (id, host) VALUES ($1, $2)") .bind(community) .bind(format!("upgrade-{index}-{community}.example"))