diff options
author | Lucio Sauer <watermanpaint@posteo.net> | 2024-04-30 23:35:04 +0200 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2024-05-08 19:23:21 +0300 |
commit | 5650f79e69382b9efac0210383fb0960ef054893 (patch) | |
tree | 15a8b9f61d75779c3f79a36e1ceaef64c5fe0ee6 | |
parent | fix crash when performing --timeout 0 call to ftp:// site (diff) | |
download | pkgcheck-5650f79e69382b9efac0210383fb0960ef054893.tar.gz pkgcheck-5650f79e69382b9efac0210383fb0960ef054893.tar.bz2 pkgcheck-5650f79e69382b9efac0210383fb0960ef054893.zip |
modify test to check that timeout=0 is never passed to _ftp_check
followup to f691ea197c3db922edf33e570708751421db48aa
Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
Closes: https://github.com/pkgcore/pkgcheck/pull/678
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
-rw-r--r-- | tests/addons/test_addons.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/addons/test_addons.py b/tests/addons/test_addons.py index 47503a6c..c02214f7 100644 --- a/tests/addons/test_addons.py +++ b/tests/addons/test_addons.py @@ -387,10 +387,12 @@ class TestNetAddon: addon = addons.NetAddon(options) assert isinstance(addon.session, requests.Session) assert addon.session.timeout == 10 + assert addon.timeout == 10 # a timeout of zero disables timeouts entirely options, _ = tool.parse_args(["scan", "--timeout", "0"]) addon = addons.NetAddon(options) assert addon.session.timeout is None + assert addon.timeout is None def test_args(self, tool): options, _ = tool.parse_args( |