Skip to content

Commit c746d7a

Browse files
committed
[py] urllib throws on 404 so let's check the /status endpoint that returns 200
1 parent 1881111 commit c746d7a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

py/conftest.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,12 @@ def wait_for_server(url, timeout):
198198
try:
199199
urlopen(url)
200200
return 1
201-
except IOError as e:
202-
print(e)
201+
except IOError:
203202
time.sleep(0.2)
204203
return 0
205204

206205
_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
207-
url = 'http://{}:{}/'.format(_host, _port)
206+
url = 'http://{}:{}/status'.format(_host, _port)
208207
try:
209208
_socket.connect((_host, _port))
210209
print('The remote driver server is already running or something else'

0 commit comments

Comments
 (0)