From 4bd9709c7ae72043187d0c7addee0727fb787a0b Mon Sep 17 00:00:00 2001 From: Tom Brow Date: Tue, 17 Nov 2026 10:41:23 -0800 Subject: [PATCH] test(db): pass a sender to update_channel in the channel tenant-guard test #9581 added a sender parameter to Db::update_channel, but single_table_guard_channels_remain_tenant_bound_without_trigger still called it with three arguments, so buzz-db tests no longer compiled on main. Pass the channel's creator; both calls only rename the channel. Also mark the file's existing local dev database URL as test-only for the secrets scanner, as test_support.rs already does. Signed-off-by: Tom Brow Co-authored-by: studio --- crates/buzz-db/src/store/deletion.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/buzz-db/src/store/deletion.rs b/crates/buzz-db/src/store/deletion.rs index 3645edb9eba..2cb8acfc64b 100644 --- a/crates/buzz-db/src/store/deletion.rs +++ b/crates/buzz-db/src/store/deletion.rs @@ -5145,6 +5145,7 @@ DROP FUNCTION protect_community_deletion_manifest_keys(); name: Some("wrong-community".to_string()), ..Default::default() }, + &[1; 32], ) .await, Err(DbError::ChannelNotFound(_)) @@ -5156,6 +5157,7 @@ DROP FUNCTION protect_community_deletion_manifest_keys(); name: Some("same-community".to_string()), ..Default::default() }, + &[1; 32], ) .await .expect("same-community metadata update"); @@ -5782,7 +5784,7 @@ DROP FUNCTION protect_community_deletion_manifest_keys(); async fn contender_db(application_name: &str) -> Db { let database_url = std::env::var("BUZZ_TEST_DATABASE_URL") .or_else(|_| std::env::var("DATABASE_URL")) - .unwrap_or_else(|_| "postgres://buzz:buzz_dev@localhost:5432/buzz".to_string()); + .unwrap_or_else(|_| "postgres://buzz:buzz_dev@localhost:5432/buzz".to_string()); // sadscan:disable np.postgres.1 -- local test-only credentials let options = PgConnectOptions::from_str(&database_url) .expect("parse test database URL") .application_name(application_name);