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:
Luigi Pinca authored and RafaelGSS committed 2022-09-05 11:32:55 -03:00
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');