We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2348f4f commit 42e8468Copy full SHA for 42e8468
testcontainers/src/runners/async_runner.rs
@@ -472,13 +472,13 @@ mod tests {
472
473
#[tokio::test]
474
async fn async_run_command_should_map_exposed_port() -> anyhow::Result<()> {
475
+ let _ = pretty_env_logger::try_init();
476
let image = get_server_container(None)
477
.await
- .with_exposed_port(5000.tcp())
478
- .with_wait_for(WaitFor::seconds(1));
+ .with_exposed_port(5000.tcp());
479
let container = image.start().await?;
480
container
481
- .get_host_port_ipv4(5000)
+ .get_host_port_ipv4(5000.tcp())
482
483
.expect("Port should be mapped");
484
Ok(())
0 commit comments