diff --git a/test/websocket-server.test.js b/test/websocket-server.test.js index 12928ff49..2ea81d319 100644 --- a/test/websocket-server.test.js +++ b/test/websocket-server.test.js @@ -210,8 +210,8 @@ describe('WebSocketServer', () => { } }); - const ws = new WebSocket(`ws+unix://${sockPath}:/foo?bar=bar`); - ws.on('open', () => new WebSocket(`ws+unix://${sockPath}`)); + const ws = new WebSocket(`ws+unix:${sockPath}:/foo?bar=bar`); + ws.on('open', () => new WebSocket(`ws+unix:${sockPath}`)); }); }); });