Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-usielski committed Nov 21, 2024
1 parent 723e062 commit 514c494
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion moler/runner_single_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ def _remove_unnecessary_connection_observers(self):

def _start_command(self, connection_observer):
"""
Srart command if connection_observer is an instance of a command. If an instance of event then do nothing.
Start command if connection_observer is an instance of a command. If an instance of event then do nothing.
:param connection_observer: ConnectionObserver
:return: None
"""
Expand Down
6 changes: 3 additions & 3 deletions test/cmd/at/test_cmd_at_attach.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ def test_calling_at_cmd_attach_timeouts_on_no_output(buffer_connection):
import time
at_cmd_attach = attach.Attach(connection=buffer_connection.moler_connection,
**attach.COMMAND_KWARGS_ver_execute)
at_cmd_attach.timeout = 0.5
at_cmd_attach.timeout = 0.1
start_time = time.monotonic()
with pytest.raises(CommandTimeout):
at_cmd_attach()
duration = time.monotonic() - start_time
assert duration > 0.5
assert duration < 0.7
assert duration > 0.1
assert duration < 0.3


def test_calling_at_cmd_attach_returns_expected_result(buffer_connection):
Expand Down

0 comments on commit 514c494

Please sign in to comment.