File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -57,11 +57,17 @@ const stream = require('stream');
57
57
}
58
58
} ) ;
59
59
w . end ( 'testing ended state' , common . mustCall ( ( err ) => {
60
+ // This errors since .destroy(err), which is invoked by errors
61
+ // in same tick below, will error all pending callbacks.
62
+ // Does this make sense? Not sure.
60
63
assert . strictEqual ( err . code , 'ERR_STREAM_DESTROYED' ) ;
61
64
} ) ) ;
62
65
assert . strictEqual ( w . destroyed , false ) ;
63
66
assert . strictEqual ( w . writableEnded , true ) ;
64
67
w . end ( common . mustCall ( ( err ) => {
68
+ // This errors since .destroy(err), which is invoked by errors
69
+ // in same tick below, will error all pending callbacks.
70
+ // Does this make sense? Not sure.
65
71
assert . strictEqual ( err . code , 'ERR_STREAM_DESTROYED' ) ;
66
72
} ) ) ;
67
73
assert . strictEqual ( w . destroyed , false ) ;
You can’t perform that action at this time.
0 commit comments