From 06b9702984ad4cd2342ee9927a2c181a8d57c0d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gra=C3=B1a?= Date: Thu, 27 Jun 2013 17:09:26 -0300 Subject: [PATCH] increase delay in test to avoid small time differences --- scrapy/tests/test_crawl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scrapy/tests/test_crawl.py b/scrapy/tests/test_crawl.py index 5b3b8a0e2..256f2d9b1 100644 --- a/scrapy/tests/test_crawl.py +++ b/scrapy/tests/test_crawl.py @@ -29,10 +29,10 @@ class CrawlTestCase(TestCase): @defer.inlineCallbacks def test_delay(self): spider = FollowAllSpider() - yield docrawl(spider, {"DOWNLOAD_DELAY": 0.3}) + yield docrawl(spider, {"DOWNLOAD_DELAY": 1}) t = spider.times[0] for t2 in spider.times[1:]: - self.assertTrue(t2-t > 0.15, "download delay too small: %s" % (t2-t)) + self.assertTrue(t2-t > 0.45, "download delay too small: %s" % (t2-t)) t = t2 @defer.inlineCallbacks