import time
import cookielib
+import os
import unittest
import envoy
from requests.sessions import Session
+PORT = os.environ.get('HTTPBIN_PORT', '7045')
-HTTPBIN_URL = 'http://0.0.0.0:7045/'
+HTTPBIN_URL = 'http://0.0.0.0:%s/' % (PORT)
# HTTPBIN_URL = 'http://127.0.0.1:8000/'
if not _httpbin:
- self.httpbin = envoy.connect('gunicorn httpbin:app --bind=0.0.0.0:7045')
+ self.httpbin = envoy.connect('gunicorn httpbin:app --bind=0.0.0.0:%s' % (PORT))
_httpbin = True
time.sleep(1)