summaryrefslogtreecommitdiff
path: root/cli/test_util.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/test_util.rs')
-rw-r--r--cli/test_util.rs15
1 files changed, 14 insertions, 1 deletions
diff --git a/cli/test_util.rs b/cli/test_util.rs
index 9c0307096..d2a49d05f 100644
--- a/cli/test_util.rs
+++ b/cli/test_util.rs
@@ -74,7 +74,20 @@ pub fn http_server() -> HttpServerGuard {
println!("tools/http_server.py starting...");
let mut child = Command::new("python")
.current_dir(root_path())
- .args(&["-u", "tools/http_server.py"])
+ .args(&[
+ "-u",
+ "tools/http_server.py",
+ "--certfile",
+ root_path()
+ .join("std/http/testdata/tls/localhost.crt")
+ .to_str()
+ .unwrap(),
+ "--keyfile",
+ root_path()
+ .join("std/http/testdata/tls/localhost.key")
+ .to_str()
+ .unwrap(),
+ ])
.stdout(Stdio::piped())
.spawn()
.expect("failed to execute child");