Add unit to timeout value

This commit is contained in:
Daniel A. Wozniak 2023-12-27 12:24:08 -07:00 committed by Daniel Wozniak
parent abe92390c3
commit f118440dae
2 changed files with 2 additions and 2 deletions

View file

@ -1157,7 +1157,7 @@ class RemoteClient(Client):
)
except salt.exceptions.SaltReqTimeoutError:
raise SaltClientError(
f"File client timed out after {int(time.monotonic() - start)}"
f"File client timed out after {int(time.monotonic() - start)} seconds"
)
def destroy(self):

View file

@ -126,7 +126,7 @@ def test_fileclient_timeout(minion_opts, master_opts):
# Crypticle must return bytes to pass to transport.RequestClient.send
client.auth._crypticle = Mock()
client.auth._crypticle.dumps = mock_dumps
msg = r"^File client timed out after \d{1,4}$"
msg = r"^File client timed out after \d{1,4} seconds$"
with pytest.raises(salt.exceptions.SaltClientError, match=msg):
client.file_list()