Skip to content

Commit 37ca70f

Browse files
committed
test: loosen the object-format error matching
As pointed out by the robot, this can be an issue with different locales. It is enough for our purposes to know that the error message includes "object-format" so we know it's unhappy with it.
1 parent 0579f18 commit 37ca70f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git_sizer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ func TestSHA256(t *testing.T) {
869869
cmd.Env = testutils.CleanGitEnv()
870870
output, err := cmd.CombinedOutput()
871871

872-
if err != nil && strings.HasPrefix(string(output), "error: unknown option `object-format'") {
872+
if err != nil && strings.Contains(string(output), "object-format") {
873873
t.Skip("skipping due to lack of SHA256 support")
874874
}
875875
require.NoError(t, err)

0 commit comments

Comments
 (0)