Skip to content

Commit 594ead4

Browse files
committed
f - Use IPv4 address for connect_with_unknown_server
Windows is giving AddrNotAvailable for IPv6 addresses.
1 parent fb6aa08 commit 594ead4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning-block-sync/src/http.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ pub(crate) mod client_tests {
592592

593593
#[test]
594594
fn connect_with_unknown_server() {
595-
match HttpClient::connect(("::", 80)) {
595+
match HttpClient::connect(("0.0.0.0", 80)) {
596596
Err(e) => assert_eq!(e.kind(), std::io::ErrorKind::ConnectionRefused),
597597
Ok(_) => panic!("Expected error"),
598598
}

0 commit comments

Comments
 (0)