Skip to content

Commit 47546fa

Browse files
metcoder95mcollina
authored andcommitted
test: fix windows wpt (#4050)
* test: fixup * chore: narrow to windows * test: another batch * test: one moreq * chore: narrow to wpt * test: one moreq * Revert "chore: narrow to wpt" This reverts commit cb56079. * Revert "chore: narrow to windows" This reverts commit 02d9c31. Signed-off-by: Matteo Collina <[email protected]>
1 parent 10a0315 commit 47546fa

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

test/wpt/runner/runner.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export class WPTRunner extends EventEmitter {
131131
}
132132

133133
async run () {
134-
const workerPath = fileURLToPath(join(import.meta.url, '../worker.mjs'))
134+
const workerPath = join(fileURLToPath(import.meta.url), '../worker.mjs')
135135
/** @type {Set<Worker>} */
136136
const activeWorkers = new Set()
137137
let finishedFiles = 1

test/wpt/server/server.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { setTimeout as sleep } from 'node:timers/promises'
88
import { route as networkPartitionRoute } from './routes/network-partition-key.mjs'
99
import { route as redirectRoute } from './routes/redirect.mjs'
1010

11-
const tests = fileURLToPath(join(import.meta.url, '../../tests'))
11+
const tests = join(fileURLToPath(import.meta.url), '../../tests')
1212

1313
// https://web-platform-tests.org/tools/wptserve/docs/stash.html
1414
class Stash extends Map {

test/wpt/start-cacheStorage.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { fileURLToPath } from 'url'
44
import { fork } from 'child_process'
55
import { on } from 'events'
66

7-
const serverPath = fileURLToPath(join(import.meta.url, '../server/server.mjs'))
7+
const serverPath = join(fileURLToPath(import.meta.url), '../server/server.mjs')
88

99
const child = fork(serverPath, [], {
1010
stdio: ['pipe', 'pipe', 'pipe', 'ipc']

test/wpt/start-fetch.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { on } from 'events'
66

77
const { WPT_REPORT } = process.env
88

9-
const serverPath = fileURLToPath(join(import.meta.url, '../server/server.mjs'))
9+
const serverPath = join(fileURLToPath(import.meta.url), '../server/server.mjs')
1010

1111
const child = fork(serverPath, [], {
1212
stdio: ['pipe', 'pipe', 'pipe', 'ipc']

test/wpt/start-mimesniff.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { on } from 'events'
66

77
const { WPT_REPORT } = process.env
88

9-
const serverPath = fileURLToPath(join(import.meta.url, '../server/server.mjs'))
9+
const serverPath = join(fileURLToPath(import.meta.url), '../server/server.mjs')
1010

1111
const child = fork(serverPath, [], {
1212
stdio: ['pipe', 'pipe', 'pipe', 'ipc']

test/wpt/start-websockets.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if (process.env.CI) {
2222
// process.exit(0)
2323
}
2424

25-
const serverPath = fileURLToPath(join(import.meta.url, '../server/websocket.mjs'))
25+
const serverPath = join(fileURLToPath(import.meta.url), '../server/websocket.mjs')
2626

2727
const child = fork(serverPath, [], {
2828
stdio: ['pipe', 'pipe', 'pipe', 'ipc']

0 commit comments

Comments
 (0)