mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-28 18:18:17 +00:00
it is not possible to enforce an upper limit when latency is out of control
This commit is contained in:
parent
3eb5d5e931
commit
d7e11082f2
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user