Skip to content

Commit 02b7df5

Browse files
committed
fixup! fs: prevent unwanted dependencyOwners removal
1 parent b009513 commit 02b7df5

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

test/parallel/test-runner-complex-dependencies.mjs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { describe, it } from 'node:test';
44
import assert from 'node:assert';
55
import { spawn } from 'node:child_process';
66
import { writeFileSync } from 'node:fs';
7-
import util from 'internal/util';
87
import tmpdir from '../common/tmpdir.js';
98

109
if (common.isIBMi)
@@ -35,9 +34,7 @@ Object.entries(fixtureContent)
3534
.forEach(([file, content]) => writeFileSync(fixturePaths[file], content));
3635

3736
describe('test runner watch mode with more complex setup', () => {
38-
// This test is failing and needs to be fixed
39-
// The expected behavior is that the test runner should re-run the appropriate tests when a shared dependency changes
40-
it.todo('should re-run appropriate tests when dependencies change', async () => {
37+
it('should re-run appropriate tests when dependencies change', async () => {
4138
// Start the test runner in watch mode
4239
const child = spawn(process.execPath,
4340
['--watch', '--test'],
@@ -46,10 +43,10 @@ describe('test runner watch mode with more complex setup', () => {
4643
let currentRunOutput = '';
4744
const testRuns = [];
4845

49-
const firstRunCompleted = util.createDeferredPromise();
50-
const secondRunCompleted = util.createDeferredPromise();
51-
const thirdRunCompleted = util.createDeferredPromise();
52-
const fourthRunCompleted = util.createDeferredPromise();
46+
const firstRunCompleted = Promise.withResolvers();
47+
const secondRunCompleted = Promise.withResolvers();
48+
const thirdRunCompleted = Promise.withResolvers();
49+
const fourthRunCompleted = Promise.withResolvers();
5350

5451
child.stdout.on('data', (data) => {
5552
const str = data.toString();

0 commit comments

Comments
 (0)