mirror of https://github.com/fafhrd91/actix-web
Fix test
This commit is contained in:
parent
b78dd3a0e1
commit
91eb626163
|
@ -733,7 +733,7 @@ mod tests {
|
||||||
))
|
))
|
||||||
};
|
};
|
||||||
let logger = Logger::new("%% %{User-Agent}i %{X-Test}o %{HOME}e %D test")
|
let logger = Logger::new("%% %{User-Agent}i %{X-Test}o %{HOME}e %D test")
|
||||||
.register_closure(|_req: &ServiceRequest| -> String {
|
.register_request_closure(|_req: &ServiceRequest| -> String {
|
||||||
String::from("custom_log")
|
String::from("custom_log")
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -744,7 +744,6 @@ mod tests {
|
||||||
header::HeaderValue::from_static("ACTIX-WEB"),
|
header::HeaderValue::from_static("ACTIX-WEB"),
|
||||||
)
|
)
|
||||||
.to_srv_request();
|
.to_srv_request();
|
||||||
let res = srv.call(req).await;
|
let _res = srv.call(req).await;
|
||||||
println!("{:?}", res);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue