summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorraittes <raittes@gmail.com>2021-02-11 14:34:45 -0300
committerAsif Saif Uddin <auvipy@gmail.com>2021-02-12 10:35:01 +0600
commitae9ce769c3a51d19f101f83b6fbcb8087388bc43 (patch)
treed22f58ffa2009600e5370cea2f72bb5f8703b443 /t
parent264617305514b5fcc567002c24910506a98b0e4e (diff)
downloadkombu-ae9ce769c3a51d19f101f83b6fbcb8087388bc43.tar.gz
t/unit/asynchronous/http/test_curl: fix test_set_timeout
Diffstat (limited to 't')
-rw-r--r--t/unit/asynchronous/http/test_curl.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/unit/asynchronous/http/test_curl.py b/t/unit/asynchronous/http/test_curl.py
index 419de205..7c62808a 100644
--- a/t/unit/asynchronous/http/test_curl.py
+++ b/t/unit/asynchronous/http/test_curl.py
@@ -95,8 +95,10 @@ class test_CurlClient:
x._handle_socket(0xff3f, fd, x._multi, None, _pycurl)
def test_set_timeout(self):
- x = self.Client()
+ hub = Mock(name='hub')
+ x = self.Client(hub)
x._set_timeout(100)
+ hub.call_later.assert_called_with(100, x._timeout_check)
def test_timeout_check(self):
with patch('kombu.asynchronous.http.curl.pycurl') as _pycurl: