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:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2018-04-06 16:15:05 +0300
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2018-04-06 16:21:12 +0300
commit89c0d5bb384d73b21e88b238a52cdee3be78049b (patch)
tree7fa59c5605f41bc9864704f96622aa98ac2a91d4
parentc57c3dd42e60ab4366ed7abddaf35fc7e6ff70c2 (diff)
Fix broken test on git 2.17
AFAIK since today I'm on 2.16, git changed the error message when something is not a git repository.
-rw-r--r--internal/service/repository/fsck_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/service/repository/fsck_test.go b/internal/service/repository/fsck_test.go
index d4122841c..6e457f924 100644
--- a/internal/service/repository/fsck_test.go
+++ b/internal/service/repository/fsck_test.go
@@ -3,6 +3,7 @@ package repository
import (
"os"
"path"
+ "strings"
"testing"
"github.com/stretchr/testify/assert"
@@ -53,7 +54,7 @@ func TestFsckFailureSeverlyBrokenRepo(t *testing.T) {
c, err := client.Fsck(ctx, &pb.FsckRequest{Repository: testRepo})
assert.NoError(t, err)
assert.NotNil(t, c)
- assert.Contains(t, string(c.GetError()), "Not a git repository")
+ assert.Contains(t, strings.ToLower(string(c.GetError())), "not a git repository")
}
func TestFsckFailureSlightlyBrokenRepo(t *testing.T) {