mirror of
https://github.com/fafhrd91/actix-web
synced 2025-01-18 05:41:50 +01:00
update tests
This commit is contained in:
parent
9ed4159c0c
commit
26af6040ff
@ -39,7 +39,7 @@ fn test_serve_incoming() {
|
|||||||
|| Application::new()
|
|| Application::new()
|
||||||
.resource("/", |r| r.method(Method::GET).h(httpcodes::HTTPOk)));
|
.resource("/", |r| r.method(Method::GET).h(httpcodes::HTTPOk)));
|
||||||
let tcp = TcpListener::from_listener(tcp, &addr2, Arbiter::handle()).unwrap();
|
let tcp = TcpListener::from_listener(tcp, &addr2, Arbiter::handle()).unwrap();
|
||||||
srv.start_incoming::<_, ()>(tcp.incoming(), false).unwrap();
|
srv.start_incoming(tcp.incoming(), false).unwrap();
|
||||||
sys.run();
|
sys.run();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user