@@ -364,7 +364,6 @@ mod test {
364364 }
365365
366366 #[ test]
367- #[ ignore( cfg( windows) ) ] // FIXME #8811
368367 fn write_close_ip4 ( ) {
369368 do run_in_mt_newsched_task {
370369 let addr = next_test_ip4 ( ) ;
@@ -380,8 +379,11 @@ mod test {
380379 loop {
381380 let mut stop = false ;
382381 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 ) ;
385387 stop = true ;
386388 } ) . inside {
387389 stream. write ( buf) ;
@@ -399,7 +401,6 @@ mod test {
399401 }
400402
401403 #[ test]
402- #[ ignore( cfg( windows) ) ] // FIXME #8811
403404 fn write_close_ip6 ( ) {
404405 do run_in_mt_newsched_task {
405406 let addr = next_test_ip6 ( ) ;
@@ -415,8 +416,11 @@ mod test {
415416 loop {
416417 let mut stop = false ;
417418 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 ) ;
420424 stop = true ;
421425 } ) . inside {
422426 stream. write ( buf) ;
0 commit comments