fix timeout test of Ping Command
@@ -16,8 +16,9 @@ def test_ping_returns_proper_command_string(buffer_connection):
ping_cmd = Ping(buffer_connection, destination="localhost", options="-c 5")
assert "ping localhost -c 5" == ping_cmd.command_string
+
def test_ping_observer_timeout(buffer_connection):
from moler.exceptions import CommandTimeout
- with pytest.raises(CommandTimeout, match=r'Ping\(\"ping localhost\", id:\S+\) await_done time \d+.\d+ >= \d+.\d+ sec timeout'):
+ with pytest.raises(CommandTimeout, match=r'Ping\(\"ping localhost\", id:\S+\) \S+ time \d+.\d+ >= \d+.\d+ sec timeout'):
cmd_ping = Ping(buffer_connection.moler_connection, destination='localhost')
cmd_ping()
