mirror of https://github.com/scrapy/scrapy.git
Added a delay to wait for the proxy to start.
This commit is contained in:
parent
247b330f08
commit
f8dea74948
|
|
@ -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'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue