manually write the object files since the clean filter probably isn't running in ci
This commit is contained in:
parent
c802222d8b
commit
b8e594d14e
@ -39,6 +39,7 @@ func TestFsckDefault(t *testing.T) {
|
|||||||
repo.GitCmd("add", "*.dat")
|
repo.GitCmd("add", "*.dat")
|
||||||
repo.GitCmd("commit", "-m", "a")
|
repo.GitCmd("commit", "-m", "a")
|
||||||
repo.WriteFile(lfsObjectPath, testFileContent+"CORRUPTION")
|
repo.WriteFile(lfsObjectPath, testFileContent+"CORRUPTION")
|
||||||
|
repo.WriteFile(lfsObject2Path, testFile2Content)
|
||||||
})
|
})
|
||||||
|
|
||||||
cmd.After(func() {
|
cmd.After(func() {
|
||||||
@ -90,6 +91,7 @@ func TestFsckDryRun(t *testing.T) {
|
|||||||
repo.GitCmd("add", "*.dat")
|
repo.GitCmd("add", "*.dat")
|
||||||
repo.GitCmd("commit", "-m", "a")
|
repo.GitCmd("commit", "-m", "a")
|
||||||
repo.WriteFile(lfsObjectPath, testFileContent+"CORRUPTION")
|
repo.WriteFile(lfsObjectPath, testFileContent+"CORRUPTION")
|
||||||
|
repo.WriteFile(lfsObject2Path, testFile2Content)
|
||||||
})
|
})
|
||||||
|
|
||||||
cmd.After(func() {
|
cmd.After(func() {
|
||||||
@ -147,6 +149,8 @@ func TestFsckClean(t *testing.T) {
|
|||||||
repo.WriteFile(filepath.Join(repo.Path, "b.dat"), testFile2Content)
|
repo.WriteFile(filepath.Join(repo.Path, "b.dat"), testFile2Content)
|
||||||
repo.GitCmd("add", "*.dat")
|
repo.GitCmd("add", "*.dat")
|
||||||
repo.GitCmd("commit", "-m", "a")
|
repo.GitCmd("commit", "-m", "a")
|
||||||
|
repo.WriteFile(lfsObjectPath, testFileContent)
|
||||||
|
repo.WriteFile(lfsObject2Path, testFile2Content)
|
||||||
})
|
})
|
||||||
|
|
||||||
cmd.After(func() {
|
cmd.After(func() {
|
||||||
|
Loading…
Reference in New Issue
Block a user