Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
atlowChemi committed Jul 15, 2023
1 parent b9e291f commit 1bdf897
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/parallel/test-inspector-open-dispose.mjs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import * as common from '../common/index.mjs';
import * as inspector from 'node:inspector';
import assert from 'node:assert';
import net from 'node:net';
import url from 'node:url';
import { fork } from 'node:child_process';

common.skipIfInspectorDisabled();
if (process.env.BE_CHILD) {
beChild();
await beChild();
} else {
let firstPort;

Expand Down Expand Up @@ -60,7 +59,8 @@ function ping(port, callback) {
}
}

function beChild() {
async function beChild() {
const inspector = await import('node:inspector');
let inspectorDisposer;
process.send({ cmd: 'started' });

Expand Down

0 comments on commit 1bdf897

Please sign in to comment.