fix(ci): stabilize current main test regressions

This commit is contained in:
Stephen Schoettler 2026-04-30 06:36:50 -07:00
parent 9a14540603
commit 407dfbb021
3 changed files with 55 additions and 27 deletions

View file

@ -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")