mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-03 02:11:48 +00:00
fix(ci): stabilize current main test regressions
This commit is contained in:
parent
9a14540603
commit
407dfbb021
3 changed files with 55 additions and 27 deletions
|
|
@ -216,7 +216,7 @@ class TestSyncBackConflict:
|
|||
class TestSyncBackRetries:
|
||||
"""Retry behaviour with exponential backoff."""
|
||||
|
||||
@patch("tools.environments.file_sync.time.sleep")
|
||||
@patch("tools.environments.file_sync._sleep")
|
||||
def test_sync_back_retries_on_failure(self, mock_sleep, tmp_path):
|
||||
call_count = 0
|
||||
|
||||
|
|
@ -237,7 +237,7 @@ class TestSyncBackRetries:
|
|||
mock_sleep.assert_any_call(_SYNC_BACK_BACKOFF[0])
|
||||
mock_sleep.assert_any_call(_SYNC_BACK_BACKOFF[1])
|
||||
|
||||
@patch("tools.environments.file_sync.time.sleep")
|
||||
@patch("tools.environments.file_sync._sleep")
|
||||
def test_sync_back_all_retries_exhausted(self, mock_sleep, tmp_path, caplog):
|
||||
def always_fail(dest: Path):
|
||||
raise RuntimeError("persistent failure")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue