Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2020-10-16 12:01:34 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2020-10-16 12:01:34 +0300
commitffa448ebc12708c5eabc3932407eee4bd27ba7fb (patch)
treef219ec00f3f06480b99bce94193ae52e2c0dee25
parentfe716289d7ab396ea8a7675233983dac9477ac06 (diff)
git2go: Fix semantic conflict in error message
The gitaly-git2go revert tests explicitly check for matching errors. One of those errors which is raised in case looking up a commit has failed has recently been reworded for increased clarity in commit 831cb439 (git2go: Improve error messages when looking up commits, 2020-10-12). Due to both merge requests crossing, those testcases now fail. Fix the issue by adjusting expected error messages.
-rw-r--r--cmd/gitaly-git2go/revert_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/gitaly-git2go/revert_test.go b/cmd/gitaly-git2go/revert_test.go
index d624f5784..6c62b9f93 100644
--- a/cmd/gitaly-git2go/revert_test.go
+++ b/cmd/gitaly-git2go/revert_test.go
@@ -132,7 +132,7 @@ func TestRevert_trees(t *testing.T) {
return "nonexistent", revertOid.String()
},
- expectedStderr: "revert: ours commit lookup: could not lookup reference: revspec 'nonexistent' not found\n",
+ expectedStderr: "revert: ours commit lookup: could not lookup reference \"nonexistent\": revspec 'nonexistent' not found\n",
},
{
desc: "nonexistent revert fails",
@@ -143,7 +143,7 @@ func TestRevert_trees(t *testing.T) {
return oursOid.String(), "nonexistent"
},
- expectedStderr: "revert: revert commit lookup: could not lookup reference: revspec 'nonexistent' not found\n",
+ expectedStderr: "revert: revert commit lookup: could not lookup reference \"nonexistent\": revspec 'nonexistent' not found\n",
},
}
for _, tc := range testcases {