Skip to content

Commit

Permalink
test(timeout): resolve windows failures
Browse files Browse the repository at this point in the history
  • Loading branch information
10xLaCroixDrinker committed Apr 22, 2024
1 parent a422c7d commit f99feb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/timeout.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { test } from 'node:test'
import { once } from 'node:events'
import { pathToFileURL } from 'node:url'
import { fork } from 'node:child_process'
import { tspl } from '@matteo.collina/tspl'
import { join } from 'desm'
Expand All @@ -8,7 +9,7 @@ const borp = join(import.meta.url, '..', 'borp.js')
const clock = join(import.meta.url, '..', 'test-utils', 'clock.js')
const forkOpts = {
cwd: join(import.meta.url, '..', 'fixtures', 'long'),
env: { NODE_OPTIONS: `--import=${clock}` },
env: { NODE_OPTIONS: `--import=${pathToFileURL(clock)}` },
stdio: ['pipe', 'pipe', 'pipe', 'ipc']
}

Expand Down

0 comments on commit f99feb4

Please sign in to comment.