mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add unit to timeout value
This commit is contained in:
parent
abe92390c3
commit
f118440dae
2 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue