From 2d86172f174510192df1e724bfcab987f2931ed8 Mon Sep 17 00:00:00 2001 From: Gwen Lg Date: Thu, 13 Jun 2024 22:23:41 +0200 Subject: [PATCH] rename wait_for_server to reflect change in wait_for_port --- src/server.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server.rs b/src/server.rs index 4156649..7cfe10c 100644 --- a/src/server.rs +++ b/src/server.rs @@ -1,4 +1,4 @@ -use crate::server::utils::{get_free_port, wait_for_port}; +use crate::server::utils::{get_free_port, wait_for_server}; use mktemp::Temp; use std::error::Error; use std::io::{self, Cursor, Read}; @@ -56,7 +56,7 @@ impl EmbeddedServer { .stderr(Stdio::piped()) .spawn()?; - wait_for_port(&mut child, port)?; + wait_for_server(&mut child, port)?; Ok(Self { _srv_dir: dest, @@ -98,7 +98,7 @@ mod utils { Ok(port) } - pub fn wait_for_port(child: &mut Child, port: u16) -> std::io::Result<()> { + pub fn wait_for_server(child: &mut Child, port: u16) -> std::io::Result<()> { for _ in 0..50 { check_server(child)?; if port_scanner::scan_port(port) {