Skip to content

Commit 4e07dda

Browse files
metcoder95mcollina
authored andcommittedMar 12, 2025··
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.
1 parent 1333871 commit 4e07dda

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed
 

‎test/wpt/runner/runner.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { colors, handlePipes, normalizeName, parseMeta, resolveStatusPath } from
77

88
const alwaysExit0 = process.env.GITHUB_WORKFLOW === 'Daily WPT report'
99

10-
const basePath = fileURLToPath(join(import.meta.url, '../..'))
10+
const basePath = join(fileURLToPath(import.meta.url), '../..')
1111
const testPath = join(basePath, '../fixtures/wpt')
1212
const statusPath = join(basePath, 'status')
1313

@@ -135,7 +135,7 @@ export class WPTRunner extends EventEmitter {
135135
}
136136

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

‎test/wpt/server/server.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { route as redirectRoute } from './routes/redirect.mjs'
1010
import { Pipeline } from './util.mjs'
1111
import { symbols } from './constants.mjs'
1212

13-
const tests = fileURLToPath(join(import.meta.url, '../../../fixtures/wpt'))
13+
const tests = join(fileURLToPath(import.meta.url), '../../../fixtures/wpt')
1414

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

‎test/wpt/start-cacheStorage.mjs

+1-1
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-eventsource.mjs

+1-1
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

+1-1
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

+1-1
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

+1-1
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)
Please sign in to comment.