Added a delay to wait for the proxy to start.

This commit is contained in:
duendex 2013-12-03 03:09:06 -02:00
parent 247b330f08
commit f8dea74948
1 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,8 @@ class ProxyConnectTestCase(TestCase):
self._oldenv = os.environ.copy()
self._proxy = HTTPSProxy(8888)
self._proxy.start()
# Wait for the proxy to start.
time.sleep(1.0)
os.environ['http_proxy'] = 'http://scrapy:scrapy@localhost:8888'
os.environ['https_proxy'] = 'http://scrapy:scrapy@localhost:8888'