We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2575cc commit 7cef9c5Copy full SHA for 7cef9c5
lightning-block-sync/src/http.rs
@@ -563,6 +563,9 @@ pub(crate) mod client_tests {
563
#[test]
564
fn connect_with_unknown_server() {
565
match HttpClient::connect(("::", 80)) {
566
+ #[cfg(target_os = "windows")]
567
+ Err(e) => assert_eq!(e.kind(), std::io::ErrorKind::AddrNotAvailable),
568
+ #[cfg(not(target_os = "windows"))]
569
Err(e) => assert_eq!(e.kind(), std::io::ErrorKind::ConnectionRefused),
570
Ok(_) => panic!("Expected error"),
571
}
0 commit comments