diff options
author | Luca Casonato <lucacasonato@yahoo.com> | 2021-01-13 16:48:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-13 16:48:33 +0100 |
commit | 18b31504011aef2c9e414287eae1bd9745cdaef5 (patch) | |
tree | 8ab55ac292374b59cba6e719b8dbefceb35b7d25 /test_util/src | |
parent | 1728b3ba1972faf532f261d2a7cfd6130d0f548f (diff) |
build: disable cafile_* tests and use slow runners (#9089)
Diffstat (limited to 'test_util/src')
-rw-r--r-- | test_util/src/lib.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test_util/src/lib.rs b/test_util/src/lib.rs index 652259d1d..9e9a9c971 100644 --- a/test_util/src/lib.rs +++ b/test_util/src/lib.rs @@ -699,6 +699,7 @@ async fn wrap_main_https_server() { let tcp = TcpListener::bind(&main_server_https_addr) .await .expect("Cannot bind TCP"); + println!("tls ready"); let tls_acceptor = TlsAcceptor::from(tls_config.clone()); // Prepare a long-running future stream to accept and serve cients. let incoming_tls_stream = async_stream::stream! { @@ -894,9 +895,17 @@ impl HttpServerCount { let stdout = test_server.stdout.as_mut().unwrap(); use std::io::{BufRead, BufReader}; let lines = BufReader::new(stdout).lines(); + let mut ready = false; + let mut tls_ready = false; for maybe_line in lines { if let Ok(line) = maybe_line { if line.starts_with("ready") { + ready = true; + } + if line.starts_with("tls ready") { + tls_ready = true; + } + if ready && tls_ready { break; } } else { |