Skip to content

Commit

Permalink
Add missing replacements
Browse files Browse the repository at this point in the history
  • Loading branch information
U-NSN-INTRA\miernst authored and U-NSN-INTRA\miernst committed Jan 30, 2024
1 parent c231daf commit c0805d7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/cmd/unix/test_cmd_lxc_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ def test_lxc_info_raise_command_error(buffer_connection, command_output_and_expe
data, expected_result = command_output_and_expected_result
buffer_connection.remote_inject_response(data)
cmd = LxcInfo(name="0xe049", connection=buffer_connection.moler_connection, options="-z")
from time import time
start_time = time()
from time import monotonic
start_time = monotonic()
with pytest.raises(CommandFailure):
cmd()
end_time = time()
end_time = monotonic()
assert (end_time - start_time) < cmd.timeout


Expand All @@ -37,11 +37,11 @@ def test_lxc_info_raise_container_name_error(buffer_connection, container_name_e
buffer_connection.remote_inject_response(data)
cmd = LxcInfo(name="0xe0499", connection=buffer_connection.moler_connection)
cmd.terminating_timeout = 0
from time import time
start_time = time()
from time import monotonic
start_time = monotonic()
with pytest.raises(CommandFailure):
cmd()
end_time = time()
end_time = monotonic()
assert (end_time - start_time) < cmd.timeout


Expand Down

0 comments on commit c0805d7

Please sign in to comment.