aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-01-05 12:15:05 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-01-05 12:15:05 -0800
commitd15a3b366c7ec8b0f2dfc44e7802d7cc3ebd8290 (patch)
tree9a63ae6f04db60ca6d06d4c9603bcc7c7c821fdd /tests/runner.py
parent814cd72af956fd215938e1d1bc8a9266339f63a4 (diff)
fix networking for both stream and dgram
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-xtests/runner.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/runner.py b/tests/runner.py
index b26162c0..2d4146a9 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -10283,12 +10283,12 @@ elif 'browser' in str(sys.argv):
return relay_server
def test_zz_websockets_bi(self):
- for fm in [0,1]:
+ for datagram in [0,1]:
try:
with self.WebsockHarness(8992, self.make_relay_server(8992, 8994)):
with self.WebsockHarness(8994, no_server=True):
- Popen([PYTHON, EMCC, path_from_root('tests', 'websockets_bi_side.c'), '-o', 'side.html', '-DSOCKK=8995', '-s', 'SOCKET_FORCED_MESSAGING=%d' % fm]).communicate()
- self.btest('websockets_bi.c', expected='2499', args=['-s', 'SOCKET_FORCED_MESSAGING=%d' % fm])
+ Popen([PYTHON, EMCC, path_from_root('tests', 'websockets_bi_side.c'), '-o', 'side.html', '-DSOCKK=8995', '-DTEST_DGRAM=%d' % datagram]).communicate()
+ self.btest('websockets_bi.c', expected='2499', args=['-DTEST_DGRAM=%d' % datagram])
finally:
self.clean_pids()