mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-24 15:03:41 +00:00
added minor delay to httpcache tests, for them to pass on win32
This commit is contained in:
parent
9c31fc447a
commit
3d6f598abc
@ -49,6 +49,7 @@ class HttpCacheMiddlewareTest(unittest.TestCase):
|
||||
storage = self._get_storage(HTTPCACHE_EXPIRATION_SECS=0)
|
||||
assert storage.retrieve_response(self.spider, self.request) is None
|
||||
storage.store_response(self.spider, self.request, self.response)
|
||||
time.sleep(0.1) # required for win32
|
||||
assert storage.retrieve_response(self.spider, self.request) is None
|
||||
|
||||
def test_storage_never_expire(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user