Skip to content

Commit 85f7bbf

Browse files
lpincaaduh95
authored andcommitted
test: do not use common.isMainThread
`common.isMainThread` was removed in 8caa1dcee63b2c6fd7a9, use the `isMainThread` export of the `worker_threads` module instead. PR-URL: #56768 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
1 parent 575251a commit 85f7bbf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/parallel/test-require-resolve-opts-paths-relative.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
const common = require('../common');
44
const assert = require('assert');
55
const fixtures = require('../common/fixtures');
6+
const { isMainThread } = require('worker_threads');
67

7-
if (!common.isMainThread)
8+
if (!isMainThread)
89
common.skip('process.chdir is not available in Workers');
910

1011
const subdir = fixtures.path('module-require', 'relative', 'subdir');

0 commit comments

Comments
 (0)