Skip to content

Commit b186c14

Browse files
committed
Fix fake server to bind more flexibly
1 parent a0cd83e commit b186c14

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

crates/sdk-core/tests/common/fake_grpc_server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ where
7070
let (shutdown_tx, shutdown_rx) = oneshot::channel::<()>();
7171
let (header_tx, header_rx) = tokio::sync::mpsc::unbounded_channel();
7272

73-
let listener = TcpListener::bind("127.0.0.1:0").await.unwrap();
73+
let listener = TcpListener::bind("[::]:0").await.unwrap();
7474
let addr = listener.local_addr().unwrap();
7575

7676
let server_handle = tokio::spawn(async move {

crates/sdk-core/tests/integ_tests/client_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ async fn namespace_header_attached_to_relevant_calls() {
255255
let (shutdown_tx, shutdown_rx) = oneshot::channel::<()>();
256256
let (header_tx, mut header_rx) = tokio::sync::mpsc::unbounded_channel();
257257

258-
let listener = TcpListener::bind("127.0.0.1:0").await.unwrap();
258+
let listener = TcpListener::bind("[::]:0").await.unwrap();
259259
let addr = listener.local_addr().unwrap();
260260

261261
let server_handle = tokio::spawn(async move {

0 commit comments

Comments
 (0)