Skip to content

Commit

Permalink
Fix websocket send test
Browse files Browse the repository at this point in the history
  • Loading branch information
juj committed Nov 27, 2019
1 parent 633c257 commit 499dcff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_sockets.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def __exit__(self, *args, **kwargs):


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


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

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

0 comments on commit 499dcff

Please sign in to comment.