Skip to content

Commit 0695cfe

Browse files
committed
better assert message
1 parent 345d96f commit 0695cfe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/index.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,10 @@ async fn test_routing_with_prefix() {
785785
.await
786786
.expect_err("Expected 404 error")
787787
.to_string();
788-
assert!(resp.contains("404"));
788+
assert!(
789+
resp.contains("404"),
790+
"Response should contain \"404\", but got:\n{resp}"
791+
);
789792

790793
// Test forbidden paths with prefix
791794
let resp = req_path_with_app_data("/prefix/sqlpage/migrations/0001_init.sql", app_data.clone())

0 commit comments

Comments
 (0)