Skip to content

Commit

Permalink
chore(interop): Fix tls tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LucioFranco committed Aug 8, 2023
1 parent 95e81f5 commit 21a9b7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion interop/src/bin/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {

let test_cases = matches.test_case;

let scheme = if matches.use_tls { "https" } else { "http" };

#[allow(unused_mut)]
let mut endpoint = Endpoint::from_static("http://localhost:10000")
let mut endpoint = Endpoint::try_from(format!("{}://localhost:10000", scheme))?
.timeout(Duration::from_secs(5))
.concurrency_limit(30);

Expand Down

0 comments on commit 21a9b7b

Please sign in to comment.