Skip to content

Commit e817def

Browse files
authored
Split test_nodejs_sockets_echo_subprotocol test. NFC (#22817)
1 parent 0bf241c commit e817def

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test_sockets.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,11 @@ def test_nodejs_sockets_echo_subprotocol(self):
304304
self.assertContained('do_msg_read: read 14 bytes', out)
305305
self.assertContained(['connect: ws://127.0.0.1:59166, base64,binary', 'connect: ws://127.0.0.1:59166/, base64,binary'], out)
306306

307+
@requires_native_clang
308+
def test_nodejs_sockets_echo_subprotocol_runtime(self):
307309
# Test against a Websockified server with runtime WebSocket configuration. We specify both url and subprotocol.
308310
# In this test we have *deliberately* used the wrong port '-DSOCKK=12345' to configure the echo_client.c, so
309311
# the connection would fail without us specifying a valid WebSocket URL in the configuration.
310-
print("\nTesting runtime WebSocket configuration.\n")
311312
create_file('websocket_pre.js', '''
312313
var Module = {
313314
websocket: {

0 commit comments

Comments
 (0)