Skip to content

Commit

Permalink
test: fix windows wpt (#4050)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
metcoder95 authored Feb 9, 2025
1 parent f798628 commit c7f3d77
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions test/wpt/runner/runner.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { colors, handlePipes, normalizeName, parseMeta, resolveStatusPath } from

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

const basePath = fileURLToPath(join(import.meta.url, '../..'))
const basePath = join(fileURLToPath(import.meta.url), '../..')
const testPath = join(basePath, '../fixtures/wpt')
const statusPath = join(basePath, 'status')

Expand Down Expand Up @@ -135,7 +135,7 @@ export class WPTRunner extends EventEmitter {
}

async run () {
const workerPath = fileURLToPath(join(import.meta.url, '../worker.mjs'))
const workerPath = join(fileURLToPath(import.meta.url), '../worker.mjs')
/** @type {Set<Worker>} */
const activeWorkers = new Set()
let finishedFiles = 1
Expand Down
2 changes: 1 addition & 1 deletion test/wpt/server/server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { route as redirectRoute } from './routes/redirect.mjs'
import { Pipeline } from './util.mjs'
import { symbols } from './constants.mjs'

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

// https://web-platform-tests.org/tools/wptserve/docs/stash.html
class Stash extends Map {
Expand Down
2 changes: 1 addition & 1 deletion test/wpt/start-cacheStorage.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { fileURLToPath } from 'url'
import { fork } from 'child_process'
import { on } from 'events'

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

const child = fork(serverPath, [], {
stdio: ['pipe', 'pipe', 'pipe', 'ipc']
Expand Down
2 changes: 1 addition & 1 deletion test/wpt/start-eventsource.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { fileURLToPath } from 'url'
import { fork } from 'child_process'
import { on } from 'events'

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

const child = fork(serverPath, [], {
stdio: ['pipe', 'pipe', 'pipe', 'ipc']
Expand Down
2 changes: 1 addition & 1 deletion test/wpt/start-fetch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { on } from 'events'

const { WPT_REPORT } = process.env

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

const child = fork(serverPath, [], {
stdio: ['pipe', 'pipe', 'pipe', 'ipc']
Expand Down
2 changes: 1 addition & 1 deletion test/wpt/start-mimesniff.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { on } from 'events'

const { WPT_REPORT } = process.env

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

const child = fork(serverPath, [], {
stdio: ['pipe', 'pipe', 'pipe', 'ipc']
Expand Down
2 changes: 1 addition & 1 deletion test/wpt/start-websockets.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if (process.env.CI) {
// process.exit(0)
}

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

const child = fork(serverPath, [], {
stdio: ['pipe', 'pipe', 'pipe', 'ipc']
Expand Down

0 comments on commit c7f3d77

Please sign in to comment.