Scrapy, a fast high-level web crawling & scraping framework for Python.
Stop test_storage from expiring its cache entry on slow runners (#7993)
Adrianca48915dd4f6
diff --git a/tests/test_downloadermiddleware_httpcache.py b/tests/test_downloadermiddleware_httpcache.pyindex 50ff5e63f..6eabe91ad 100644--- a/tests/test_downloadermiddleware_httpcache.py+++ b/tests/test_downloadermiddleware_httpcache.py@@ -112,7 +112,7 @@ class StorageTestMixin(TestBase):raise NotImplementedErrordef test_storage(self):- with self._storage(HTTPCACHE_EXPIRATION_SECS=1) as (storage, crawler):+ with self._storage(HTTPCACHE_EXPIRATION_SECS=100) as (storage, crawler):request2 = self.request.copy()assert storage.retrieve_response(crawler.spider, request2) is None