Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-usielski committed Dec 3, 2024
1 parent ce5d3c0 commit e83411b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/cmd/unix/test_cmd_nmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def test_calling_nmap_timeout(buffer_connection, command_output_and_expected_res
nmap_cmd.terminating_timeout = 0
from moler.exceptions import CommandTimeout
with raises(CommandTimeout) as exception:
nmap_cmd(timeout=0.5)
nmap_cmd(timeout=0.1)
assert exception is not None


Expand Down
2 changes: 1 addition & 1 deletion test/cmd/unix/test_cmd_sudo.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def test_failing_with_timeout(buffer_connection, command_output_and_expected_res
cmd_pwd = Pwd(connection=buffer_connection.moler_connection)
cmd_sudo = Sudo(connection=buffer_connection.moler_connection, password="pass", cmd_object=cmd_pwd)
with pytest.raises(CommandTimeout):
cmd_sudo(timeout=0.3)
cmd_sudo(timeout=0.1)


def test_can_use_timeout_of_embedded_command(buffer_connection, command_output_and_expected_result_timeout):
Expand Down
2 changes: 1 addition & 1 deletion test/test_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def test_2_jobs_concurrently():
job1.cancel()
job2.cancel()
assert (2 == values_2['number'])
assert (4 == values_1['number'] or 5 == values_1['number'])
assert (4 == values_1['number'])


def test_thread_test_job():
Expand Down

0 comments on commit e83411b

Please sign in to comment.