From 422e85de90d90a418f3765d95324b082d2ffa569 Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Sat, 20 Aug 2022 21:18:12 +0200 Subject: [PATCH] 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`. --- .../test-stream-writable-callback-twice.js | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 test/parallel/test-stream-writable-callback-twice.js diff --git a/test/parallel/test-stream-writable-callback-twice.js b/test/parallel/test-stream-writable-callback-twice.js deleted file mode 100644 index 25e7579a2d4737..00000000000000 --- a/test/parallel/test-stream-writable-callback-twice.js +++ /dev/null @@ -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');