Skip to content

Commit

Permalink
Fix compile errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
brendandburns committed Jun 2, 2023
1 parent d3be496 commit d4ecb4a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/test-programs/wasi-http-tests/src/bin/outbound_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ fn main() -> Result<()> {

// Delete is not an allowed method in this test.
let r6 = request(
types::MethodParam::Delete,
types::SchemeParam::Http,
types::Method::Delete,
types::Scheme::Http,
"localhost:3000",
"/",
"",
Expand All @@ -197,13 +197,13 @@ fn main() -> Result<()> {
let error = r6.unwrap_err();
assert_eq!(
error.to_string(),
"ErrorResult::UnexpectedError(\"Method DELETE is not allowed.\")"
"Error::UnexpectedError(\"Method DELETE is not allowed.\")"
);

// localhost:8080 is not an allowed authority in this test.
let r7 = request(
types::MethodParam::Get,
types::SchemeParam::Http,
types::Method::Get,
types::Scheme::Http,
"localhost:8080",
"/",
"",
Expand All @@ -213,7 +213,7 @@ fn main() -> Result<()> {
let error = r7.unwrap_err();
assert_eq!(
error.to_string(),
"ErrorResult::UnexpectedError(\"Authority localhost:8080 is not allowed.\")"
"Error::UnexpectedError(\"Authority localhost:8080 is not allowed.\")"
);

Ok(())
Expand Down

0 comments on commit d4ecb4a

Please sign in to comment.