diff --git a/test/parallel/test-runner-run.mjs b/test/parallel/test-runner-run.mjs index d61e77e68f3d03..6517f8d8a5fb34 100644 --- a/test/parallel/test-runner-run.mjs +++ b/test/parallel/test-runner-run.mjs @@ -1,11 +1,14 @@ +// Flags: --expose-internals + import * as common from '../common/index.mjs'; import * as fixtures from '../common/fixtures.mjs'; import { join } from 'node:path'; import { describe, it, run } from 'node:test'; import { dot, spec, tap } from 'node:test/reporters'; import assert from 'node:assert'; -import testStream from 'node:stream'; +import stream from 'internal/test_runner/tests_stream'; +const { TestsStream } = stream; const testFixtures = fixtures.path('test-runner'); describe('require(\'node:test\').run', { concurrency: true }, () => { @@ -471,7 +474,7 @@ describe('require(\'node:test\').run', { concurrency: true }, () => { const stream = run({ files: [join(testFixtures, 'default-behavior/test/random.cjs')], setup: common.mustCall((root) => { - assert(root instanceof testStream); + assert(root instanceof TestsStream); }), }); stream.on('test:fail', common.mustNotCall());