Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
test: make test-quic-process-cleanup work with --worker
Browse files Browse the repository at this point in the history
PR-URL: #159
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
addaleax authored and jasnell committed Oct 9, 2019
1 parent 81e9492 commit 777d93f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-quic-process-cleanup.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ if (!common.hasQuic)
// sequence and we can stop execution at any point.

const quic = require('quic');
const { isMainThread, Worker, workerData } = require('worker_threads');
const { Worker, workerData } = require('worker_threads');

if (isMainThread) {
if (workerData === null) {
new Worker(__filename, { workerData: { removeFromSocket: true } });
new Worker(__filename, { workerData: { removeFromSocket: false } });
return;
Expand Down

0 comments on commit 777d93f

Please sign in to comment.