Skip to content

Commit

Permalink
more merging
Browse files Browse the repository at this point in the history
  • Loading branch information
smklein committed Aug 22, 2024
1 parent fbe4126 commit 8293be5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions nexus/db-queries/src/db/queries/vpc_subnet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,9 @@ mod test {
let log = logctx.log.new(o!());
let mut db = test_setup_database(&log).await;
let cfg = crate::db::Config { url: db.pg_config().clone() };
let pool = Arc::new(crate::db::Pool::new(&logctx.log, &cfg));
let conn = pool.pool().get().await.unwrap();
let pool =
Arc::new(crate::db::Pool::new_single_host(&logctx.log, &cfg));
let conn = pool.claim().await.unwrap();
let explain = query.explain_async(&conn).await.unwrap();
println!("{explain}");
db.cleanup().await.unwrap();
Expand Down Expand Up @@ -545,7 +546,8 @@ mod test {
let log = logctx.log.new(o!());
let mut db = test_setup_database(&log).await;
let cfg = crate::db::Config { url: db.pg_config().clone() };
let pool = Arc::new(crate::db::Pool::new(&logctx.log, &cfg));
let pool =
Arc::new(crate::db::Pool::new_single_host(&logctx.log, &cfg));
let db_datastore = Arc::new(
crate::db::DataStore::new(&log, Arc::clone(&pool), None)
.await
Expand Down

0 comments on commit 8293be5

Please sign in to comment.