1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-09-09 05:08:32 +00:00
This commit is contained in:
Nikolay Kim 2019-02-09 21:32:44 -08:00
parent 1af149b9e6
commit e178db7f74

View file

@ -599,7 +599,9 @@ mod tests {
let mut h1 = Dispatcher::new(
buf,
ServiceConfig::default(),
(|req| ok::<_, Error>(Response::Ok().finish())).into_service(),
CloneableService::new(
(|req| ok::<_, Error>(Response::Ok().finish())).into_service(),
),
);
assert!(h1.poll().is_ok());
assert!(h1.poll().is_ok());