Skip to content

Commit

Permalink
tests: Minor internal improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Tectu committed Dec 8, 2024
1 parent 6c0c029 commit d22e838
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_suites/components/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,19 @@ TEST_SUITE("controller - roundtrips")
"/"
};
auto stop_tkn = cli_ctrl.http_request(req, [&](auto&& resp){
CHECK(resp[malloy::http::field::server] == serve_agent_str);
CHECK_EQ(resp[malloy::http::field::server], serve_agent_str);
});

ms::routing_context serve_ctrl{serve_cfg};

serve_ctrl.router().add(malloy::http::method::get, "/", [&](auto&& req){
CHECK(req[malloy::http::field::user_agent] == cli_agent_str);
CHECK_EQ(req[malloy::http::field::user_agent], cli_agent_str);
return malloy::http::generator::ok();
});

auto serve_session = start(std::move(serve_ctrl));
start(cli_ctrl).run();

CHECK(!stop_tkn.get());
CHECK_FALSE(stop_tkn.get());
}
}

0 comments on commit d22e838

Please sign in to comment.