bump wait-time for port to be ready; build-host is slower to compile than my laptop..

This commit is contained in:
James Wilson
2021-07-16 10:03:38 +01:00
parent fd79b3e85b
commit 81a0140c3b
+1 -1
View File
@@ -9,7 +9,7 @@ use tokio::time::Duration;
/// because we want to allow the kernel to assign ports and so don't specify a port as an arg.
pub async fn get_port<R: AsyncRead + Unpin>(reader: R) -> Result<u16, anyhow::Error> {
let expected_text = "listening on http://127.0.0.1:";
wait_for_line_containing(reader, expected_text, Duration::from_secs(60))
wait_for_line_containing(reader, expected_text, Duration::from_secs(240))
.await
.and_then(|line| {
let (_, port_str) = line.rsplit_once(expected_text).unwrap();