test: Adjusting tests with the correct timeout
This commit is contained in:
@@ -106,5 +106,5 @@ class TestStealthyFetcher:
|
|||||||
async def test_infinite_timeout(self, fetcher, urls):
|
async def test_infinite_timeout(self, fetcher, urls):
|
||||||
"""Test if infinite timeout breaks the code or not"""
|
"""Test if infinite timeout breaks the code or not"""
|
||||||
assert (
|
assert (
|
||||||
await fetcher.async_fetch(urls["delayed_url"], timeout=None)
|
await fetcher.async_fetch(urls["delayed_url"], timeout=0)
|
||||||
).status == 200
|
).status == 200
|
||||||
|
|||||||
@@ -89,4 +89,4 @@ class TestStealthyFetcher:
|
|||||||
|
|
||||||
def test_infinite_timeout(self, fetcher):
|
def test_infinite_timeout(self, fetcher):
|
||||||
"""Test if infinite timeout breaks the code or not"""
|
"""Test if infinite timeout breaks the code or not"""
|
||||||
assert fetcher.fetch(self.delayed_url, timeout=None).status == 200
|
assert fetcher.fetch(self.delayed_url, timeout=0).status == 200
|
||||||
|
|||||||
Reference in New Issue
Block a user