mirror of
https://github.com/denoland/deno.git
synced 2025-10-03 23:54:37 +00:00
build: disable cafile_* tests and use slow runners (#9089)
This commit is contained in:
parent
1728b3ba19
commit
18b3150401
3 changed files with 42 additions and 26 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue