Skip to content

Commit

Permalink
use path.join like other tests
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Aug 10, 2018
1 parent dc0cf5b commit 54be888
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/onPort.test.js
Expand Up @@ -5,7 +5,6 @@ const { test } = require('tap')
const spawn = require('child_process').spawn
const split = require('split2')
const hasAsyncHooks = require('has-async-hooks')
const target = require.resolve('./targetProcess')

test('--on-port flag', { skip: !hasAsyncHooks() }, (t) => {
const lines = [
Expand All @@ -28,7 +27,7 @@ test('--on-port flag', { skip: !hasAsyncHooks() }, (t) => {
'-c', '10',
'-d', '1',
'--on-port', '/',
'--', 'node', target
'--', 'node', path.join(__dirname, './targetProcess')
], {
cwd: __dirname,
env: process.env,
Expand Down

0 comments on commit 54be888

Please sign in to comment.