##// END OF EJS Templates
latest git version fixes issue with handling locking
marcink -
r2957:15dc5b2f beta
parent child Browse files
Show More
@@ -322,11 +322,8 b' class TestVCSOperations(unittest.TestCas'
322 #pull fails since repo is locked
322 #pull fails since repo is locked
323 clone_url = _construct_url(GIT_REPO)
323 clone_url = _construct_url(GIT_REPO)
324 stdout, stderr = Command('/tmp').execute('git clone', clone_url)
324 stdout, stderr = Command('/tmp').execute('git clone', clone_url)
325 msg = ("""abort: HTTP Error 423: Repository `%s` locked by user `%s`"""
325 msg = ("""423 Repository `%s` locked by user `%s`"""
326 % (GIT_REPO, TEST_USER_ADMIN_LOGIN))
326 % (GIT_REPO, TEST_USER_ADMIN_LOGIN))
327 #TODO: fix this somehow later on GIT, GIT is stupid and even if we throw
328 # back 423 to it, it makes ANOTHER request and we fail there with 405 :/
329 msg = "405 Method Not Allowed"
330 assert msg in stderr
327 assert msg in stderr
331
328
332 def test_push_on_locked_repo_by_other_user_hg(self):
329 def test_push_on_locked_repo_by_other_user_hg(self):
General Comments 0
You need to be logged in to leave comments. Login now