From 8078280e8874c09d3c369a5689ff6be6eec0db79 Mon Sep 17 00:00:00 2001 From: Marcin Anforowicz Date: Tue, 10 Dec 2024 18:34:53 -0800 Subject: [PATCH] Fixing loopback address for Windows test. --- gday_encryption/tests/test_integration.rs | 4 ++-- gday_hole_punch/tests/test_integration.rs | 2 +- gday_server/tests/test_integration.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gday_encryption/tests/test_integration.rs b/gday_encryption/tests/test_integration.rs index c8fed4b..564fc95 100644 --- a/gday_encryption/tests/test_integration.rs +++ b/gday_encryption/tests/test_integration.rs @@ -22,7 +22,7 @@ async fn test_transfers() { let chunk_size = 200_000; // Listens on the loopback address - let listener = tokio::net::TcpListener::bind("[::]:0").await.unwrap(); + let listener = tokio::net::TcpListener::bind("[::1]:0").await.unwrap(); let pipe_addr = listener.local_addr().unwrap(); // A thread that will send data to the loopback address @@ -77,7 +77,7 @@ async fn test_bufread() { let chunk_size = 200_000; // Listens on the loopback address - let listener = tokio::net::TcpListener::bind("[::]:0").await.unwrap(); + let listener = tokio::net::TcpListener::bind("[::1]:0").await.unwrap(); let pipe_addr = listener.local_addr().unwrap(); // A thread that will send data to the loopback address diff --git a/gday_hole_punch/tests/test_integration.rs b/gday_hole_punch/tests/test_integration.rs index be2941b..b0ecd97 100644 --- a/gday_hole_punch/tests/test_integration.rs +++ b/gday_hole_punch/tests/test_integration.rs @@ -12,7 +12,7 @@ async fn test_integration() { key: None, certificate: None, unencrypted: true, - addresses: vec!["0.0.0.0:0".parse().unwrap(), "[::]:0".parse().unwrap()], + addresses: vec!["127.0.0.1:0".parse().unwrap(), "[::1]:0".parse().unwrap()], timeout: 3600, request_limit: 10, verbosity: log::LevelFilter::Off, diff --git a/gday_server/tests/test_integration.rs b/gday_server/tests/test_integration.rs index 60e9e70..d95ac24 100644 --- a/gday_server/tests/test_integration.rs +++ b/gday_server/tests/test_integration.rs @@ -12,7 +12,7 @@ async fn test_integration() { key: None, certificate: None, unencrypted: true, - addresses: vec!["0.0.0.0:0".parse().unwrap(), "[::]:0".parse().unwrap()], + addresses: vec!["127.0.0.1:0".parse().unwrap(), "[::1]:0".parse().unwrap()], timeout: 3600, request_limit: 10, verbosity: log::LevelFilter::Off, @@ -185,7 +185,7 @@ async fn test_request_limit() { key: None, certificate: None, unencrypted: true, - addresses: vec!["0.0.0.0:0".parse().unwrap(), "[::]:0".parse().unwrap()], + addresses: vec!["127.0.0.1:0".parse().unwrap(), "[::1]:0".parse().unwrap()], timeout: 3600, request_limit: 10, verbosity: log::LevelFilter::Off,