aboutsummaryrefslogtreecommitdiff
path: root/tests/test_sockets.py
diff options
context:
space:
mode:
authorAnthony Pesch <inolen@gmail.com>2013-08-30 16:52:52 -0700
committerAnthony Pesch <inolen@gmail.com>2013-08-30 16:53:05 -0700
commit5cf189f76e6e0ebb5d0e4866e066ac26da7ccbb6 (patch)
treebbc72b05c0854b083329e71f93c43685104f1a37 /tests/test_sockets.py
parent19d175c00a94e66f96b2535fae7b4d4fad3c2248 (diff)
don't close client sockets by default in echo server enabling TCP teardown to succeed
Diffstat (limited to 'tests/test_sockets.py')
-rw-r--r--tests/test_sockets.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_sockets.py b/tests/test_sockets.py
index eacd92ba..d2bc46a2 100644
--- a/tests/test_sockets.py
+++ b/tests/test_sockets.py
@@ -285,8 +285,8 @@ class sockets(BrowserCore):
sockets_include = '-I'+path_from_root('tests', 'sockets')
for harness in [
- WebsockifyServerHarness(os.path.join('sockets', 'test_sockets_echo_server.c'), [sockets_include], 49200),
- CompiledServerHarness(os.path.join('sockets', 'test_sockets_echo_server.c'), [sockets_include], 49201)
+ WebsockifyServerHarness(os.path.join('sockets', 'test_sockets_echo_server.c'), [sockets_include, '-DCLOSE_CLIENT_AFTER_ECHO'], 49200),
+ CompiledServerHarness(os.path.join('sockets', 'test_sockets_echo_server.c'), [sockets_include, '-DCLOSE_CLIENT_AFTER_ECHO'], 49201)
]:
with harness:
self.btest(os.path.join('sockets', 'test_sockets_select_server_closes_connection_client_rw.c'), expected='266', args=[sockets_include, '-DSOCKK=%d' % harness.listen_port])