1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-28 22:37:44 +00:00

it is not possible to enforce an upper limit when latency is out of control

This commit is contained in:
Daniel Graña 2013-07-18 11:07:42 -03:00
parent 3eb5d5e931
commit d7e11082f2

View File

@ -47,8 +47,6 @@ class CrawlTestCase(TestCase):
tolerance = 0.6 if randomize else 0.2 tolerance = 0.6 if randomize else 0.2
self.assertTrue(avgd > delay * (1 - tolerance), self.assertTrue(avgd > delay * (1 - tolerance),
"download delay too small: %s" % avgd) "download delay too small: %s" % avgd)
self.assertTrue(avgd < delay * (1 + tolerance),
"download delay too big: %s" % avgd)
@defer.inlineCallbacks @defer.inlineCallbacks
def test_timeout_success(self): def test_timeout_success(self):