Skip to content

Commit

Permalink
fix: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
junkurihara committed Nov 17, 2023
1 parent f235d79 commit c8027a1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion relay-lib/src/relay/forwarder_handle_url.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,12 @@ mod tests {

#[test]
fn test_build_next_hop_url() {
let mut runtime_builder = tokio::runtime::Builder::new_multi_thread();
runtime_builder.enable_all();

let runtime = runtime_builder.build().unwrap();
let inner: InnerForwarder<_, Incoming> = InnerForwarder {
inner: HttpClient::new(tokio::runtime::Handle::current()),
inner: HttpClient::new(runtime.handle().clone()),
request_headers: HeaderMap::new(),
relay_host: "example.com".to_string(),
relay_path: "/proxy".to_string(),
Expand Down

0 comments on commit c8027a1

Please sign in to comment.