From e13735726740eba17bd4d77d9dbe93b5bc0c2ccd Mon Sep 17 00:00:00 2001 From: confor Date: Mon, 14 Apr 2025 01:46:33 -0400 Subject: [PATCH] Fix tests and run cargo fmt --- tests/e2e_test.rs | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/tests/e2e_test.rs b/tests/e2e_test.rs index 8e9f59a..76505b0 100644 --- a/tests/e2e_test.rs +++ b/tests/e2e_test.rs @@ -19,7 +19,15 @@ lazy_static! { /// Spawn the server, giving some time for the control port TcpListener to start. async fn spawn_server(secret: Option<&str>) { - tokio::spawn(Server::new(1024..=65535, secret).listen()); + tokio::spawn( + Server::new( + 1024..=65535, + secret, + "0.0.0.0".to_string(), + "0.0.0.0".to_string(), + ) + .listen(), + ); time::sleep(Duration::from_millis(50)).await; } @@ -125,5 +133,10 @@ async fn very_long_frame() -> Result<()> { fn empty_port_range() { let min_port = 5000; let max_port = 3000; - let _ = Server::new(min_port..=max_port, None); + let _ = Server::new( + min_port..=max_port, + None, + "0.0.0.0".to_string(), + "0.0.0.0".to_string(), + ); }