mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
test: remove duplicate test
The test in `test/parallel/test-stream-writable-callback-twice.js` is duplicated in `test/parallel/test-stream-writable-write-cb-twice.js`. PR-URL: https://github.com/nodejs/node/pull/44313 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
This commit is contained in:
1 parent
88d9566593
commit
8e2dcafc24
1 file changed
-14
@@ -1,14 +0,0 @@
|
||||
'use strict';
|
||||
const common = require('../common');
|
||||
const { Writable } = require('stream');
|
||||
const stream = new Writable({
|
||||
write(chunk, enc, cb) { cb(); cb(); }
|
||||
});
|
||||
|
||||
stream.on('error', common.expectsError({
|
||||
name: 'Error',
|
||||
message: 'Callback called multiple times',
|
||||
code: 'ERR_MULTIPLE_CALLBACK'
|
||||
}));
|
||||
|
||||
stream.write('foo');
|
||||
Reference in new issue
Block a user