Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

destroy the unwritable stream to close the test out

  • Loading branch information...
commit 78e4dcc51cd6c53f5f31b8d3daa7096fb66c4f71 1 parent 19e2084
@substack authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 test/unwritable.js
View
4 test/unwritable.js
@@ -27,6 +27,10 @@ test('write() on an unwritable stream', function (t) {
'',
'oh hello'
].join('\r\n'));
+
+ setTimeout(function () {
+ stream.destroy();
+ }, 200);
});
s.listen(port, function () {
Please sign in to comment.
Something went wrong with that request. Please try again.