Skip to content

Commit 42e8468

Browse files
committed
refactor: improve test output for debugging
Signed-off-by: Marc Bodmer <marc.bodmer@securiton.ch>
1 parent 2348f4f commit 42e8468

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

testcontainers/src/runners/async_runner.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -472,13 +472,13 @@ mod tests {
472472

473473
#[tokio::test]
474474
async fn async_run_command_should_map_exposed_port() -> anyhow::Result<()> {
475+
let _ = pretty_env_logger::try_init();
475476
let image = get_server_container(None)
476477
.await
477-
.with_exposed_port(5000.tcp())
478-
.with_wait_for(WaitFor::seconds(1));
478+
.with_exposed_port(5000.tcp());
479479
let container = image.start().await?;
480480
container
481-
.get_host_port_ipv4(5000)
481+
.get_host_port_ipv4(5000.tcp())
482482
.await
483483
.expect("Port should be mapped");
484484
Ok(())

0 commit comments

Comments
 (0)