Skip to content

Commit

Permalink
Fix test example so it doesn't fail (#988)
Browse files Browse the repository at this point in the history
Comment says "Or simply test if a request matches (doesn't reject)"
therefore I would expect for assert to test for success. Also this
example (for sum) will always match. It's confusing the code example
actually tests if it doesn't match.
  • Loading branch information
vargad committed Aug 12, 2022
1 parent 5723cac commit 3cf1783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test.rs
Expand Up @@ -48,7 +48,7 @@
//!
//! // Or simply test if a request matches (doesn't reject).
//! assert!(
//! !warp::test::request()
//! warp::test::request()
//! .path("/1/-5")
//! .matches(&filter)
//! .await
Expand Down

0 comments on commit 3cf1783

Please sign in to comment.