mirror of
https://github.com/block/buzz.git
synced 2026-10-31 06:21:34 +00:00
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 <loganj@squareup.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user