Skip to content

Commit

Permalink
modify test to check that timeout=0 is never passed to _ftp_check
Browse files Browse the repository at this point in the history
followup to f691ea1

Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
Closes: #678
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
  • Loading branch information
antecrescent authored and arthurzam committed May 8, 2024
1 parent 298deaf commit 5650f79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/addons/test_addons.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,10 +387,12 @@ def test_custom_timeout(self, tool):
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(
Expand Down

0 comments on commit 5650f79

Please sign in to comment.