Skip to content

Commit 3c8c335

Browse files
committed
fix test stream
1 parent 7513467 commit 3c8c335

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/parallel/test-runner-run.mjs

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1+
// Flags: --expose-internals
2+
13
import * as common from '../common/index.mjs';
24
import * as fixtures from '../common/fixtures.mjs';
35
import { join } from 'node:path';
46
import { describe, it, run } from 'node:test';
57
import { dot, spec, tap } from 'node:test/reporters';
68
import assert from 'node:assert';
7-
import testStream from 'node:stream';
9+
import stream from 'internal/test_runner/tests_stream';
810

11+
const { TestsStream } = stream;
912
const testFixtures = fixtures.path('test-runner');
1013

1114
describe('require(\'node:test\').run', { concurrency: true }, () => {
@@ -471,7 +474,7 @@ describe('require(\'node:test\').run', { concurrency: true }, () => {
471474
const stream = run({
472475
files: [join(testFixtures, 'default-behavior/test/random.cjs')],
473476
setup: common.mustCall((root) => {
474-
assert(root instanceof testStream);
477+
assert(root instanceof TestsStream);
475478
}),
476479
});
477480
stream.on('test:fail', common.mustNotCall());

0 commit comments

Comments
 (0)