Skip to content

Commit

Permalink
Clean the stdout of db
Browse files Browse the repository at this point in the history
  • Loading branch information
ImJeremyHe committed Apr 24, 2024
1 parent e105e6c commit 901ebb8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sequencer/src/bin/test-node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,13 @@ mod tests {
let api_port = pick_unused_port().unwrap();
let postgres_port = pick_unused_port().unwrap();

let _ = Command::new("docker")
let mut db = Command::new("docker")
.arg("compose")
.arg("up")
.arg("-d")
.arg("sequencer-db")
.env("ESPRESSO_SEQUENCER_DB_PORT", postgres_port.to_string())
.stdout(Stdio::null())
.spawn()
.unwrap();

Expand Down Expand Up @@ -354,6 +355,7 @@ mod tests {
}

child_process.kill().unwrap();
db.kill().unwrap();
}

async fn api_get_test(client: &reqwest::Client, url: String) {
Expand Down

0 comments on commit 901ebb8

Please sign in to comment.