Retry checking port_server on socket timeout errors

pull/3489/head
Craig Tiller 9 years ago
parent a2f38b0563
commit 31fdaa4aa5
  1. 4
      tools/run_tests/run_tests.py

@ -736,6 +736,10 @@ def _start_port_server(port_server_port):
urllib2.urlopen('http://localhost:%d/get' % port_server_port,
timeout=1).read()
break
except socket.timeout:
print "waiting for port_server"
time.sleep(0.5)
waits += 1
except urllib2.URLError:
print "waiting for port_server"
time.sleep(0.5)

Loading…
Cancel
Save