diff options
author | raittes <raittes@gmail.com> | 2021-02-11 14:34:45 -0300 |
---|---|---|
committer | Asif Saif Uddin <auvipy@gmail.com> | 2021-02-12 10:35:01 +0600 |
commit | ae9ce769c3a51d19f101f83b6fbcb8087388bc43 (patch) | |
tree | d22f58ffa2009600e5370cea2f72bb5f8703b443 /t | |
parent | 264617305514b5fcc567002c24910506a98b0e4e (diff) | |
download | kombu-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.py | 4 |
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: |