File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,18 @@ jobs:
26
26
platform : macos-latest
27
27
build-net-tokio : true
28
28
build-no-std : true
29
+ - toolchain : beta
30
+ platform : macos-latest
31
+ build-net-tokio : true
32
+ build-no-std : true
29
33
- toolchain : stable
30
34
platform : windows-latest
31
35
build-net-tokio : true
32
36
build-no-std : true
37
+ - toolchain : beta
38
+ platform : windows-latest
39
+ build-net-tokio : true
40
+ build-no-std : true
33
41
- toolchain : beta
34
42
build-net-tokio : true
35
43
build-no-std : true
Original file line number Diff line number Diff line change @@ -636,7 +636,10 @@ pub(crate) mod client_tests {
636
636
#[ test]
637
637
fn connect_to_unresolvable_host ( ) {
638
638
match HttpClient :: connect ( ( "example.invalid" , 80 ) ) {
639
- Err ( e) => assert_eq ! ( e. kind( ) , std:: io:: ErrorKind :: Other ) ,
639
+ Err ( e) => {
640
+ assert ! ( e. to_string( ) . contains( "failed to lookup address information" ) ||
641
+ e. to_string( ) . contains( "No such host" ) , "{:?}" , e) ;
642
+ } ,
640
643
Ok ( _) => panic ! ( "Expected error" ) ,
641
644
}
642
645
}
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ mod tests {
135
135
// Create the channel data file and make it a directory.
136
136
fs:: create_dir_all ( get_full_filepath ( path. clone ( ) , filename. to_string ( ) ) ) . unwrap ( ) ;
137
137
match write_to_file ( path. clone ( ) , filename. to_string ( ) , & test_writeable) {
138
- Err ( e) => assert_eq ! ( e. kind ( ) , io :: ErrorKind :: Other ) ,
138
+ Err ( e) => assert_eq ! ( e. raw_os_error ( ) , Some ( libc :: EISDIR ) ) ,
139
139
_ => panic ! ( "Unexpected Ok(())" )
140
140
}
141
141
fs:: remove_dir_all ( path) . unwrap ( ) ;
@@ -178,7 +178,7 @@ mod tests {
178
178
match write_to_file ( path, filename, & test_writeable) {
179
179
Err ( e) => {
180
180
#[ cfg( not( target_os = "windows" ) ) ]
181
- assert_eq ! ( e. kind ( ) , io :: ErrorKind :: Other ) ;
181
+ assert_eq ! ( e. raw_os_error ( ) , Some ( libc :: EISDIR ) ) ;
182
182
#[ cfg( target_os = "windows" ) ]
183
183
assert_eq ! ( e. kind( ) , io:: ErrorKind :: PermissionDenied ) ;
184
184
}
You can’t perform that action at this time.
0 commit comments