From 55322890868b576f416bf9414cac2ebb46c0c6d3 Mon Sep 17 00:00:00 2001 From: mjarkk Date: Wed, 31 Oct 2018 17:36:20 +0100 Subject: [PATCH] Fixed some tests --- pkg/commands/git_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/commands/git_test.go b/pkg/commands/git_test.go index dba1874c3..a8b0d1ee0 100644 --- a/pkg/commands/git_test.go +++ b/pkg/commands/git_test.go @@ -89,7 +89,7 @@ func TestVerifyInGitRepo(t *testing.T) { }, func(err error) { assert.Error(t, err) - assert.Regexp(t, "fatal: .ot a git repository \\(or any of the parent directories\\): \\.git", err.Error()) + assert.Regexp(t, `fatal: .ot a git repository \(or any of the parent directories\s?\/?\): \.git`, err.Error()) }, }, } @@ -247,7 +247,7 @@ func TestNewGitCommand(t *testing.T) { }, func(gitCmd *GitCommand, err error) { assert.Error(t, err) - assert.Regexp(t, "fatal: .ot a git repository \\(or any of the parent directories\\): \\.git", err.Error()) + assert.Regexp(t, `fatal: .ot a git repository ((\(or any of the parent directories \): \.git)|(\(or any parent up to mount point \/\)))`, err.Error()) }, }, {