Skip to content

Commit

Permalink
Merge pull request #2746 from fermyon/fix-runtime-tests
Browse files Browse the repository at this point in the history
Fix runtime tests
  • Loading branch information
rylev authored Aug 22, 2024
2 parents be67f73 + c46b41f commit 8fd30f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/runtime-tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ impl RuntimeTest<SpinCli> {
pub fn run(&mut self) {
self.run_test(|env| {
let runtime = env.runtime_mut();
let request = Request::new(Method::Get, "/");
let request: Request<String> = Request::full(Method::Get, "/", &[("Host", "localhost")], None);
let response = runtime.make_http_request(request)?;
if response.status() == 200 {
return Ok(());
Expand Down Expand Up @@ -147,7 +147,7 @@ impl RuntimeTest<InProcessSpin> {
pub fn run(&mut self) {
self.run_test(|env| {
let runtime = env.runtime_mut();
let response = runtime.make_http_request(Request::new(Method::Get, "/"))?;
let response = runtime.make_http_request(Request::full(Method::Get, "/", &[("Host", "localhost")],None))?;
if response.status() == 200 {
return Ok(());
}
Expand Down

0 comments on commit 8fd30f5

Please sign in to comment.