@@ -61,7 +61,7 @@ def pytest_namespace():
61
61
'have_uvloop' : pytest .mark .skipif (not have_uvloop , reason = 'requires uvloop' ),
62
62
'no_uvloop' : pytest .mark .skipif (
63
63
have_uvloop , reason = 'requires uvloop to be not installed' ),
64
- 'ip ' : '127.0.0.1 ' ,
64
+ 'host ' : 'localhost ' ,
65
65
'port' : 8766 ,
66
66
'cli_path' : os .path .join (sys .exec_prefix , 'bin' , 'saltyrtc-server' ),
67
67
'key' : os .path .normpath (
@@ -103,7 +103,7 @@ def unused_tcp_port():
103
103
Find an unused localhost TCP port from 1024-65535 and return it.
104
104
"""
105
105
with closing (socket .socket ()) as sock :
106
- sock .bind ((pytest .saltyrtc .ip , 0 ))
106
+ sock .bind ((pytest .saltyrtc .host , 0 ))
107
107
return sock .getsockname ()[1 ]
108
108
109
109
@@ -319,15 +319,15 @@ def _server_factory(permanent_keys=None):
319
319
pytest .saltyrtc .cert , keyfile = pytest .saltyrtc .key ,
320
320
dh_params_file = pytest .saltyrtc .dh_params ),
321
321
permanent_keys ,
322
- host = pytest .saltyrtc .ip ,
322
+ host = pytest .saltyrtc .host ,
323
323
port = port ,
324
324
loop = event_loop ,
325
325
server_class = TestServer ,
326
326
)
327
327
server_ = event_loop .run_until_complete (coroutine )
328
328
# Inject timeout and address (little bit of a hack but meh...)
329
329
server_ .timeout = _get_timeout (request = request )
330
- server_ .address = (pytest .saltyrtc .ip , port )
330
+ server_ .address = (pytest .saltyrtc .host , port )
331
331
332
332
_server_instances .append (server_ )
333
333
0 commit comments