@@ -364,7 +364,6 @@ mod test {
364
364
}
365
365
366
366
#[ test]
367
- #[ ignore( cfg( windows) ) ] // FIXME #8811
368
367
fn write_close_ip4 ( ) {
369
368
do run_in_mt_newsched_task {
370
369
let addr = next_test_ip4 ( ) ;
@@ -380,8 +379,11 @@ mod test {
380
379
loop {
381
380
let mut stop = false ;
382
381
do io_error:: cond. trap ( |e| {
383
- // NB: ECONNRESET on linux, EPIPE on mac
384
- assert ! ( e. kind == ConnectionReset || e. kind == BrokenPipe ) ;
382
+ // NB: ECONNRESET on linux, EPIPE on mac, ECONNABORTED
383
+ // on windows
384
+ assert ! ( e. kind == ConnectionReset ||
385
+ e. kind == BrokenPipe ||
386
+ e. kind == ConnectionAborted ) ;
385
387
stop = true ;
386
388
} ) . inside {
387
389
stream. write ( buf) ;
@@ -399,7 +401,6 @@ mod test {
399
401
}
400
402
401
403
#[ test]
402
- #[ ignore( cfg( windows) ) ] // FIXME #8811
403
404
fn write_close_ip6 ( ) {
404
405
do run_in_mt_newsched_task {
405
406
let addr = next_test_ip6 ( ) ;
@@ -415,8 +416,11 @@ mod test {
415
416
loop {
416
417
let mut stop = false ;
417
418
do io_error:: cond. trap ( |e| {
418
- // NB: ECONNRESET on linux, EPIPE on mac
419
- assert ! ( e. kind == ConnectionReset || e. kind == BrokenPipe ) ;
419
+ // NB: ECONNRESET on linux, EPIPE on mac, ECONNABORTED
420
+ // on windows
421
+ assert ! ( e. kind == ConnectionReset ||
422
+ e. kind == BrokenPipe ||
423
+ e. kind == ConnectionAborted ) ;
420
424
stop = true ;
421
425
} ) . inside {
422
426
stream. write ( buf) ;
0 commit comments