Skip to content

Commit

Permalink
windows: pass ws.test.ts (oven-sh#8611)
Browse files Browse the repository at this point in the history
  • Loading branch information
nektro authored Feb 1, 2024
1 parent af1a124 commit fcf0047
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/js/first_party/ws/ws.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// @known-failing-on-windows: 1 failing
import { describe, it, expect, beforeEach, afterEach } from "bun:test";
import type { Subprocess } from "bun";
import { spawn } from "bun";
import { bunEnv, bunExe, nodeExe } from "harness";
import { Server, WebSocket, WebSocketServer } from "ws";
import path from "node:path";

const strings = [
{
Expand Down Expand Up @@ -362,7 +362,7 @@ function test(label: string, fn: (ws: WebSocket, done: (err?: unknown) => void)
}

async function listen(): Promise<URL> {
const { pathname } = new URL("../../web/websocket/websocket-server-echo.mjs", import.meta.url);
const pathname = path.resolve(import.meta.dir, "../../web/websocket/websocket-server-echo.mjs");
const server = spawn({
cmd: [nodeExe() ?? bunExe(), pathname],
cwd: import.meta.dir,
Expand Down

0 comments on commit fcf0047

Please sign in to comment.