Skip to content

Commit 499dcff

Browse files
committed
Fix websocket send test
1 parent 633c257 commit 499dcff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_sockets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def __exit__(self, *args, **kwargs):
139139

140140

141141
def NodeJsWebSocketEchoServerProcess():
142-
return BackgroundServerProcess([NODE_JS, path_from_root('tests', 'websocket', 'nodejs_websocket_echo_server.js')])
142+
return BackgroundServerProcess(NODE_JS + [path_from_root('tests', 'websocket', 'nodejs_websocket_echo_server.js')])
143143

144144

145145
def PythonTcpEchoServerProcess(port):
@@ -458,7 +458,7 @@ def test_nodejs_sockets_echo(self):
458458
# N.B. running this test requires 'npm install ws' in Emscripten root directory
459459
def test_websocket_send(self):
460460
with NodeJsWebSocketEchoServerProcess():
461-
self.btest(os.path.join('websocket', 'test_websocket_send.c'), expected='101', args=['-lwebsocket', '-s', 'NO_EXIT_RUNTIME=1', '-s', 'WEBSOCKET_DEBUG=1'])
461+
self.btest(path_from_root('tests', 'websocket', 'test_websocket_send.c'), expected='101', args=['-lwebsocket', '-s', 'NO_EXIT_RUNTIME=1', '-s', 'WEBSOCKET_DEBUG=1'])
462462

463463
# Test that native POSIX sockets API can be used by proxying calls to an intermediate WebSockets -> POSIX sockets bridge server
464464
def test_posix_proxy_sockets(self):

0 commit comments

Comments
 (0)