Skip to content

Commit 4f1e2bc

Browse files
committed
fixup: move on before destroy
1 parent 2b83ff1 commit 4f1e2bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-stream-writable-finish-destroyed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const { Writable } = require('stream');
2727
}
2828
});
2929

30+
w.on('finish', common.mustNotCall());
3031
w.write('asd');
3132
w.destroy();
32-
w.on('finish', common.mustNotCall());
3333
}

0 commit comments

Comments
 (0)