From 58c436bf4f8a3a46b14b1f3893211f3d58cb5a8a Mon Sep 17 00:00:00 2001 From: Logan Johnson Date: Thu, 29 Oct 2026 19:55:44 -0400 Subject: [PATCH] test(relay): build the cross-pod open-set test state with the renamed helper main does not compile its relay lib tests: #8676 renamed test_state_with_database_url to test_state_with_unreachable_database_url, and #8670 added two new calls to the old name in state.rs postgres_tests. These tests need a real database, so they now use test_state_with_database_url_and_pool_options with default pool options. Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Signed-off-by: Logan Johnson --- 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 8c7fbe3b81..c37c9e3d28 100644 --- a/crates/buzz-relay/src/state.rs +++ b/crates/buzz-relay/src/state.rs @@ -3375,8 +3375,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