Skip to content

Commit 5f077cd

Browse files
committed
Channel no longer errors when the channel is closed, so do not test for it
1 parent d932f45 commit 5f077cd

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/closed-channel.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,11 @@ test('write a buffer from 0 -> 1', function(t) {
4040
});
4141

4242
test('close the underlying data channel and attempt to write', function(t) {
43-
t.plan(3);
43+
t.plan(2);
4444

4545
dcs[0].close();
4646
streams[1].once('end', t.pass.bind(t, 'stream ended'));
47-
streams[0].once('error', function(err) {
48-
t.ok(err instanceof Error, 'got valid error');
49-
});
50-
5147
t.doesNotThrow(function() {
5248
streams[0].write(new Buffer('hello'));
5349
});
54-
});
50+
});

0 commit comments

Comments
 (0)