Skip to content

Commit

Permalink
fix: std tcp listener must be non-blocking to create tokio tcplistener
Browse files Browse the repository at this point in the history
  • Loading branch information
dsgallups committed Dec 5, 2023
1 parent 665377e commit 976d65d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jwt-authorizer/tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ async fn jwks() -> Json<Value> {

fn run_jwks_server() -> String {
let listener = TcpListener::bind("0.0.0.0:0".parse::<SocketAddr>().unwrap()).unwrap();
listener.set_nonblocking(true).unwrap();
let addr = listener.local_addr().unwrap();
let url = format!("http://{}:{}", addr.ip(), addr.port());

Expand Down

0 comments on commit 976d65d

Please sign in to comment.