Skip to content

Commit

Permalink
Relax test assertion string
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Oct 4, 2023
1 parent 2ad9f74 commit 29c11f1
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ fn main() {
let res = wasi_http_tests::request(Method::Connect, Scheme::Http, &addr, "/", None, Some(&[]));

let error = res.unwrap_err().to_string();
if error.ne("Error::ProtocolError(\"invalid HTTP version parsed\")")
&& !error.starts_with("Error::ProtocolError(\"operation was canceled")
{
if !error.starts_with("Error::ProtocolError(\"") {
panic!(
r#"assertion failed: `(left == right)`
left: `"{error}"`,
Expand Down

0 comments on commit 29c11f1

Please sign in to comment.