1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-27 01:37:42 +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

@ -53,7 +53,7 @@ async fn custom_resolver_connect() {
use trust_dns_resolver::TokioAsyncResolver;
let srv =
TestServer::with(|| fn_service(|_io: TcpStream| async { Ok::<_, io::Error>(()) }));
TestServer::start(|| fn_service(|_io: TcpStream| async { Ok::<_, io::Error>(()) }));
struct MyResolver {
trust_dns: TokioAsyncResolver,