summaryrefslogtreecommitdiffstats
path: root/tests/test_subcmds_sync.py
diff options
context:
space:
mode:
authorGavin Mak <gavinmak@google.com>2023-08-22 01:24:46 +0000
committerLUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-08-22 17:18:13 +0000
commit16109a66b705211efd25f434201d113628aff04c (patch)
treefede640aae0b6a485cf71c2b9fd315a53673b613 /tests/test_subcmds_sync.py
parent321b7934b5e8e316b7fa4dc306e055d3d6d351ff (diff)
downloadgit-repo-16109a66b705211efd25f434201d113628aff04c.tar.gz
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 <vapier@google.com> Commit-Queue: Gavin Mak <gavinmak@google.com> Tested-by: Gavin Mak <gavinmak@google.com>
Diffstat (limited to 'tests/test_subcmds_sync.py')
-rw-r--r--tests/test_subcmds_sync.py4
1 files changed, 2 insertions, 2 deletions
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):
110 110
111 111
112class LocalSyncState(unittest.TestCase): 112class LocalSyncState(unittest.TestCase):
113 """Tests for _LocalSyncState.""" 113 """Tests for LocalSyncState."""
114 114
115 _TIME = 10 115 _TIME = 10
116 116
@@ -129,7 +129,7 @@ class LocalSyncState(unittest.TestCase):
129 129
130 def _new_state(self, time=_TIME): 130 def _new_state(self, time=_TIME):
131 with mock.patch("time.time", return_value=time): 131 with mock.patch("time.time", return_value=time):
132 return sync._LocalSyncState(self.manifest) 132 return sync.LocalSyncState(self.manifest)
133 133
134 def test_set(self): 134 def test_set(self):
135 """Times are set.""" 135 """Times are set."""