Merge pull request #17969 from stephenschoettler/fix/current-main-test-regressions

fix(ci): stabilize current main test regressions
This commit is contained in:
ethernet
2026-04-30 13:23:38 -04:00
committed by GitHub
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")