Skip to content

Commit

Permalink
test: enable websockets inclusion in WPTReport (#2284)
Browse files Browse the repository at this point in the history
  • Loading branch information
panva authored Sep 28, 2023
1 parent 5936219 commit a78f8a8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/wpt/start-websockets.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { fileURLToPath } from 'url'
import { fork } from 'child_process'
import { on } from 'events'

const { WPT_REPORT } = process.env

if (process.env.CI) {
// TODO(@KhafraDev): figure out *why* these tests are flaky in the CI.
// process.exit(0)
Expand All @@ -19,7 +21,10 @@ child.on('exit', (code) => process.exit(code))

for await (const [message] of on(child, 'message')) {
if (message.server) {
const runner = new WPTRunner('websockets', message.server)
const runner = new WPTRunner('websockets', message.server, {
appendReport: !!WPT_REPORT,
reportPath: WPT_REPORT
})
runner.run()

runner.once('completion', () => {
Expand Down

0 comments on commit a78f8a8

Please sign in to comment.