diff --git a/test_requests.py b/test_requests.py index 188cbc0933..37d2a7d9ae 100755 --- a/test_requests.py +++ b/test_requests.py @@ -17,7 +17,6 @@ import json - # TODO: Detect an open port. PORT = os.environ.get('HTTPBIN_PORT', '7077') @@ -47,8 +46,9 @@ def setUp(self): if not _httpbin: - self.httpbin = envoy.connect('gunicorn httpbin:app --bind=0.0.0.0:%s' % (PORT)) + c = envoy.connect('gunicorn httpbin:app --bind=0.0.0.0:%s' % (PORT)) + self.httpbin = c _httpbin = True time.sleep(1)