1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-26 23:17:43 +02:00

simplify test server (#431)

This commit is contained in:
Rob Ede
2021-12-27 18:27:54 +00:00
committed by GitHub
parent e92b5aaf31
commit 01d2f18f68
9 changed files with 120 additions and 116 deletions

View File

@ -74,7 +74,7 @@ fn openssl_connector(cert: String, key: String) -> SslConnector {
async fn accepts_connections() {
let (cert, key) = new_cert_and_key();
let srv = TestServer::with({
let srv = TestServer::start({
let cert = cert.clone();
let key = key.clone();