From 514c494522d8c096807d77aa15fed0449e5a96c3 Mon Sep 17 00:00:00 2001 From: Marcin Usielski Date: Thu, 21 Nov 2024 09:40:06 +0000 Subject: [PATCH] t --- moler/runner_single_thread.py | 2 +- test/cmd/at/test_cmd_at_attach.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/moler/runner_single_thread.py b/moler/runner_single_thread.py index dc0922e5d..e3b6533d1 100644 --- a/moler/runner_single_thread.py +++ b/moler/runner_single_thread.py @@ -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 """ diff --git a/test/cmd/at/test_cmd_at_attach.py b/test/cmd/at/test_cmd_at_attach.py index 6ab8acbc2..67ee79fa5 100644 --- a/test/cmd/at/test_cmd_at_attach.py +++ b/test/cmd/at/test_cmd_at_attach.py @@ -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):