Skip to content

Commit e35b603

Browse files
committed
add one more test case
1 parent 52f0b75 commit e35b603

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

services/mirror/mirror_pull_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ func Test_checkRecoverableSyncError(t *testing.T) {
7878
{true, "error: cannot lock ref 'refs/remotes/origin/foo': unable to resolve reference 'refs/remotes/origin/foo': reference broken"},
7979
// A race condition in http git-fetch where named refs were force-pushed during the update, would exit status 128
8080
{true, "error: cannot lock ref 'refs/pull/123456/merge': is at 988881adc9fc3655077dc2d4d757d480b5ea0e11 but expected 7f894307ffc9553edbd0b671cab829786866f7b2"},
81+
// A race condition in git operations where the index.lock file is locked by another process (well, "Unable" the "U" is uppercase)
82+
{true, "fatal: Unable to create '/path/my_proj/.git/index.lock': File exists."},
8183
// Missing or unauthorized credentials, would exit status 128
8284
{false, "fatal: Authentication failed for 'https://example.com/foo-does-not-exist/bar.git/'"},
8385
// A non-existent remote repository, would exit status 128

0 commit comments

Comments
 (0)