From d27db0b5f67ccfe4090dbcd1808fcfbd9f0474fd Mon Sep 17 00:00:00 2001 From: Luke Tornquist Date: Thu, 29 Oct 2026 19:47:32 -0400 Subject: [PATCH] test(relay): build the open-set max-age test's states with real-DB pools #8676 renamed `test_state_with_database_url` to `test_state_with_unreachable_database_url` and pointed real-database tests at `test_state_with_database_url_and_pool_options`, while #8670 added a Postgres test that still called the old name. Each passed CI alone; together main's test targets no longer compile. Use the real-database helper with sqlx's default pool options, as the other Postgres-backed tests do. Co-authored-by: Elrond <28d6302a099e5225b02c4155ac4236e4912603df2ab08dbfc2f4fef08ce598c8@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 Signed-off-by: Luke Tornquist --- crates/buzz-relay/src/state.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/crates/buzz-relay/src/state.rs b/crates/buzz-relay/src/state.rs index 80a4ab9001a..7b8b7174917 100644 --- a/crates/buzz-relay/src/state.rs +++ b/crates/buzz-relay/src/state.rs @@ -3372,8 +3372,16 @@ pub(crate) mod tests { #[ignore = "requires Postgres"] async fn a_lost_open_set_invalidation_grants_a_revoked_channel_only_until_max_age() { let database_url = crate::test_support::database_url(); - let writer_pod = test_state_with_database_url(&database_url).await; - let reader_pod = test_state_with_database_url(&database_url).await; + let writer_pod = test_state_with_database_url_and_pool_options( + &database_url, + sqlx::postgres::PgPoolOptions::new(), + ) + .await; + let reader_pod = test_state_with_database_url_and_pool_options( + &database_url, + sqlx::postgres::PgPoolOptions::new(), + ) + .await; let pool = sqlx::PgPool::connect(&database_url).await.unwrap(); let community = writer_pod .db