From b8e594d14e13787a384f3f6fff5529680d796940 Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Fri, 8 May 2015 11:15:53 -0600 Subject: [PATCH] manually write the object files since the clean filter probably isn't running in ci --- commands/fsck_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commands/fsck_test.go b/commands/fsck_test.go index 8b357e01..a37ebee5 100644 --- a/commands/fsck_test.go +++ b/commands/fsck_test.go @@ -39,6 +39,7 @@ func TestFsckDefault(t *testing.T) { repo.GitCmd("add", "*.dat") repo.GitCmd("commit", "-m", "a") repo.WriteFile(lfsObjectPath, testFileContent+"CORRUPTION") + repo.WriteFile(lfsObject2Path, testFile2Content) }) cmd.After(func() { @@ -90,6 +91,7 @@ func TestFsckDryRun(t *testing.T) { repo.GitCmd("add", "*.dat") repo.GitCmd("commit", "-m", "a") repo.WriteFile(lfsObjectPath, testFileContent+"CORRUPTION") + repo.WriteFile(lfsObject2Path, testFile2Content) }) cmd.After(func() { @@ -147,6 +149,8 @@ func TestFsckClean(t *testing.T) { repo.WriteFile(filepath.Join(repo.Path, "b.dat"), testFile2Content) repo.GitCmd("add", "*.dat") repo.GitCmd("commit", "-m", "a") + repo.WriteFile(lfsObjectPath, testFileContent) + repo.WriteFile(lfsObject2Path, testFile2Content) }) cmd.After(func() {