Skip to content

Commit

Permalink
tests: allow more client connections in test DB (#3227)
Browse files Browse the repository at this point in the history
  • Loading branch information
inahga committed Jun 11, 2024
1 parent 139e9e0 commit 023979c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion aggregator_core/src/datastore/test_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,13 @@ impl EphemeralDatabase {

async fn start() -> Self {
// Start an instance of Postgres running in a container.
let db_container = RunnableImage::from(Postgres::default()).start().await;
let db_container = RunnableImage::from(Postgres::default())
.with_args(Vec::from([
"-c".to_string(),
"max_connections=200".to_string(),
]))
.start()
.await;
const POSTGRES_DEFAULT_PORT: u16 = 5432;
let port_number = db_container.get_host_port_ipv4(POSTGRES_DEFAULT_PORT).await;
trace!("Postgres container is up with port {port_number}");
Expand Down

0 comments on commit 023979c

Please sign in to comment.