mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-31 00:50:20 +02:00
use assert and restore test case
This commit is contained in:
@@ -910,9 +910,9 @@ mod tests {
|
||||
})
|
||||
.finish();
|
||||
|
||||
//let req = TestRequest::with_uri("/app/t1").request();
|
||||
//let resp = app.run(req);
|
||||
//assert_eq!(resp.as_msg().status(), StatusCode::NOT_FOUND);
|
||||
let req = TestRequest::with_uri("/app/t1").request();
|
||||
let resp = app.run(req);
|
||||
assert_eq!(resp.as_msg().status(), StatusCode::NOT_FOUND);
|
||||
|
||||
let req = TestRequest::with_uri("/app/t1/").request();
|
||||
let resp = app.run(req);
|
||||
|
Reference in New Issue
Block a user