From 28b3940207461a5b08e47e7767a42a78714c0ff0 Mon Sep 17 00:00:00 2001 From: mervyn-mccreight Date: Sat, 8 Aug 2026 03:52:17 +0200 Subject: [PATCH] test(databend): stabilize test Use `DATABEND_PORT` for the http wait strategy. --- src/databend/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/databend/mod.rs b/src/databend/mod.rs index f375c41d..919c9863 100644 --- a/src/databend/mod.rs +++ b/src/databend/mod.rs @@ -72,7 +72,9 @@ impl Image for Databend { fn ready_conditions(&self) -> Vec { vec![WaitFor::http( - HttpWaitStrategy::new("/").with_expected_status_code(200_u16), + HttpWaitStrategy::new("/") + .with_port(DATABEND_PORT) + .with_expected_status_code(200_u16), )] } @@ -95,6 +97,7 @@ mod tests { #[tokio::test] async fn test_databend() { + pretty_env_logger::init(); let databend = DatabendImage::default().start().await.unwrap(); let http_port = databend.get_host_port_ipv4(8000).await.unwrap(); let host = databend.get_host().await.unwrap();