Skip to content

Commit 1bdf897

Browse files
committed
fix test
1 parent b9e291f commit 1bdf897

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-inspector-open-dispose.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import * as common from '../common/index.mjs';
2-
import * as inspector from 'node:inspector';
32
import assert from 'node:assert';
43
import net from 'node:net';
54
import url from 'node:url';
65
import { fork } from 'node:child_process';
76

87
common.skipIfInspectorDisabled();
98
if (process.env.BE_CHILD) {
10-
beChild();
9+
await beChild();
1110
} else {
1211
let firstPort;
1312

@@ -60,7 +59,8 @@ function ping(port, callback) {
6059
}
6160
}
6261

63-
function beChild() {
62+
async function beChild() {
63+
const inspector = await import('node:inspector');
6464
let inspectorDisposer;
6565
process.send({ cmd: 'started' });
6666

0 commit comments

Comments
 (0)