From 2f752de1d28b42e534c58bf4cf6305544e30430e Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Wed, 17 May 2023 23:28:55 +0000 Subject: [PATCH] Fix compile errors. --- .../wasi-http-tests/src/bin/outbound_request.rs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/crates/test-programs/wasi-http-tests/src/bin/outbound_request.rs b/crates/test-programs/wasi-http-tests/src/bin/outbound_request.rs index 6f75eb1c21a5..3a6363685b01 100644 --- a/crates/test-programs/wasi-http-tests/src/bin/outbound_request.rs +++ b/crates/test-programs/wasi-http-tests/src/bin/outbound_request.rs @@ -186,34 +186,32 @@ fn main() -> Result<()> { // Delete is not an allowed method in this test. let r6 = request( - types::MethodParam::Delete, - types::SchemeParam::Http, + wasi::http::types::Method::Delete, + wasi::http::types::Scheme::Http, "localhost:3000", "/", - "", &[], ); 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, + wasi::http::types::Method::Get, + wasi::http::types::Scheme::Http, "localhost:8080", "/", - "", &[], ); 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(())