Skip to content

Commit

Permalink
Fixing loopback address for Windows test.
Browse files Browse the repository at this point in the history
  • Loading branch information
manforowicz committed Dec 11, 2024
1 parent 8529340 commit 8078280
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions gday_encryption/tests/test_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion gday_hole_punch/tests/test_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions gday_server/tests/test_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 8078280

Please sign in to comment.