From 16109a66b705211efd25f434201d113628aff04c Mon Sep 17 00:00:00 2001 From: Gavin Mak Date: Tue, 22 Aug 2023 01:24:46 +0000 Subject: upload: Suggest full sync if hooks fail with partially synced tree Pre-upload hooks may fail because of partial syncs. Bug: b/271507654 Change-Id: I124cd386c5af2c34e1dcaa3e86916624e235b1e3 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/383474 Reviewed-by: Mike Frysinger Commit-Queue: Gavin Mak Tested-by: Gavin Mak --- tests/test_subcmds_sync.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_subcmds_sync.py') diff --git a/tests/test_subcmds_sync.py b/tests/test_subcmds_sync.py index b43fe18e..71b0f8e0 100644 --- a/tests/test_subcmds_sync.py +++ b/tests/test_subcmds_sync.py @@ -110,7 +110,7 @@ def test_cli_jobs(argv, jobs_manifest, jobs, jobs_net, jobs_check): class LocalSyncState(unittest.TestCase): - """Tests for _LocalSyncState.""" + """Tests for LocalSyncState.""" _TIME = 10 @@ -129,7 +129,7 @@ class LocalSyncState(unittest.TestCase): def _new_state(self, time=_TIME): with mock.patch("time.time", return_value=time): - return sync._LocalSyncState(self.manifest) + return sync.LocalSyncState(self.manifest) def test_set(self): """Times are set.""" -- cgit v1.2.3-54-g00ecf