1
0
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:
Nikolay Kim
2018-07-15 18:53:02 +06:00
parent c43b6e3577
commit 2214492792
3 changed files with 14 additions and 10 deletions

View File

@@ -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);