Skip to content

Commit 76c4ee9

Browse files
committed
test: fix skipping behavior for test-runner-run-files-undefined
1 parent 7cf2dad commit 76c4ee9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/parallel/test-runner-run-files-undefined.mjs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ import { dot, spec, tap } from 'node:test/reporters';
55
import { fork } from 'node:child_process';
66
import assert from 'node:assert';
77

8-
if (common.hasCrypto) {
9-
console.log('1..0 # Skipped: no crypto');
10-
process.exit(0);
8+
if (common.isAIX) {
9+
common.skip('test runner without specifying files fails on AIX');
1110
}
1211

1312
if (process.env.CHILD === 'true') {
@@ -50,8 +49,6 @@ if (process.env.CHILD === 'true') {
5049
for await (const _ of stream);
5150
});
5251
});
53-
} else if (common.isAIX) {
54-
console.log('1..0 # Skipped: test runner without specifying files fails on AIX');
5552
} else {
5653
fork(import.meta.filename, [], {
5754
env: { CHILD: 'true' }

0 commit comments

Comments
 (0)