From 560ae952819230c1237a684c19f2a15edc55514a Mon Sep 17 00:00:00 2001 From: Karim shoair Date: Mon, 23 Jun 2025 03:24:13 +0300 Subject: [PATCH] test: Adjusting tests with the correct timeout --- tests/fetchers/async/test_camoufox.py | 2 +- tests/fetchers/sync/test_camoufox.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/fetchers/async/test_camoufox.py b/tests/fetchers/async/test_camoufox.py index 0041e14..ff33f0a 100644 --- a/tests/fetchers/async/test_camoufox.py +++ b/tests/fetchers/async/test_camoufox.py @@ -106,5 +106,5 @@ class TestStealthyFetcher: async def test_infinite_timeout(self, fetcher, urls): """Test if infinite timeout breaks the code or not""" assert ( - await fetcher.async_fetch(urls["delayed_url"], timeout=None) + await fetcher.async_fetch(urls["delayed_url"], timeout=0) ).status == 200 diff --git a/tests/fetchers/sync/test_camoufox.py b/tests/fetchers/sync/test_camoufox.py index 02413eb..37a2e85 100644 --- a/tests/fetchers/sync/test_camoufox.py +++ b/tests/fetchers/sync/test_camoufox.py @@ -89,4 +89,4 @@ class TestStealthyFetcher: def test_infinite_timeout(self, fetcher): """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