Disable git file history test that relies on commits not being squashed in github PR merges. (#135)

This commit is contained in:
Domas Monkus 2020-10-09 12:55:14 +03:00 committed by GitHub
parent 5eb33f8675
commit 95bcc7ac80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,9 +25,4 @@ func TestFileHistory(t *testing.T) {
sums, err = gitutil.FileHistory("build/sync/plan/git/testdata/nosuch_testfile.txt", repo)
assert.Equal(gitutil.ErrNotFound, err)
assert.Nil(sums)
// Calling with a non-existent file that was in git history returns no error.
sums, err = gitutil.FileHistory("build/sync/plan/git/testdata/removedfile.txt", repo)
assert.Nil(err)
assert.Equal([]string{"213df5d04c108c99d3ec9ffe43a53f638f0ede0b"}, sums)
}