summaryrefslogtreecommitdiff
path: root/cli/tests/node_compat/test/parallel/test-stream-duplex-readable-end.js
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/node_compat/test/parallel/test-stream-duplex-readable-end.js')
-rw-r--r--cli/tests/node_compat/test/parallel/test-stream-duplex-readable-end.js36
1 files changed, 0 insertions, 36 deletions
diff --git a/cli/tests/node_compat/test/parallel/test-stream-duplex-readable-end.js b/cli/tests/node_compat/test/parallel/test-stream-duplex-readable-end.js
deleted file mode 100644
index 87327814c..000000000
--- a/cli/tests/node_compat/test/parallel/test-stream-duplex-readable-end.js
+++ /dev/null
@@ -1,36 +0,0 @@
-// deno-fmt-ignore-file
-// deno-lint-ignore-file
-
-// Copyright Joyent and Node contributors. All rights reserved. MIT license.
-// Taken from Node 18.12.1
-// This file is automatically generated by `tools/node_compat/setup.ts`. Do not modify this file manually.
-
-'use strict';
-// https://github.com/nodejs/node/issues/35926
-const common = require('../common');
-const assert = require('assert');
-const stream = require('stream');
-
-let loops = 5;
-
-const src = new stream.Readable({
- read() {
- if (loops--)
- this.push(Buffer.alloc(20000));
- }
-});
-
-const dst = new stream.Transform({
- transform(chunk, output, fn) {
- this.push(null);
- fn();
- }
-});
-
-src.pipe(dst);
-
-dst.on('data', () => { });
-dst.on('end', common.mustCall(() => {
- assert.strictEqual(loops, 3);
- assert.ok(src.isPaused());
-}));