aboutsummaryrefslogtreecommitdiff
path: root/tests/test_sockets.py
diff options
context:
space:
mode:
authorAnthony Pesch <inolen@gmail.com>2013-08-23 10:50:27 -0700
committerAnthony Pesch <inolen@gmail.com>2013-08-23 14:21:41 -0700
commit989ccaf06574ec39338c827ad1eb88c1773c25ba (patch)
tree3af1749de7c33f52b928678ed020a79261d89045 /tests/test_sockets.py
parent6c6e4f5a0df7a8bd1cbe0040968851033fbc3aa0 (diff)
fixed server down test
Diffstat (limited to 'tests/test_sockets.py')
-rw-r--r--tests/test_sockets.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_sockets.py b/tests/test_sockets.py
index 4f6ee2a9..4e8bbd75 100644
--- a/tests/test_sockets.py
+++ b/tests/test_sockets.py
@@ -142,11 +142,12 @@ class sockets(BrowserCore):
# def test_sockets_gethostbyname(self):
# self.btest(os.path.join('sockets', 'test_sockets_gethostbyname.c'), expected='0', args=['-O2', '-DSOCKK=8997'])
- def test_sockets_select_server_no_accept(self):
+ def test_sockets_select_server_down(self):
for harness in [
- WebsockifyServerHarness(os.path.join('sockets', 'test_sockets_select_server_no_accept_server.c'), ['-DSOCKK=8995'], 8996, 8995)
+ WebsockifyServerHarness(os.path.join('sockets', 'test_sockets_select_server_down_server.c'), ['-DSOCKK=9002'], 9003, 9002)
]:
- self.btest(os.path.join('sockets', 'test_sockets_select_server_no_accept_client.c'), expected='266', args=['-DSOCKK=8996'])
+ with harness:
+ self.btest(os.path.join('sockets', 'test_sockets_select_server_down_client.c'), expected='266', args=['-DSOCKK=9003'])
def test_sockets_select_server_closes_connection_rw(self):
sockets_include = '-I'+path_from_root('tests', 'sockets')