Skip to content

Commit

Permalink
cache/filecache: Simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Dec 4, 2018
1 parent b804a70 commit 514e18d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cache/filecache/filecache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,13 @@ func TestFileCache(t *testing.T) {

osfs := afero.NewOsFs()

existingCacheDir := helpers.GetTempDir("hugo_filecache_test_cache_existing", osfs)
existingWorkingDir := helpers.GetTempDir("hugo_filecache_test_work_existing", osfs)

for _, test := range []struct {
cacheDir string
workingDir string
}{
// Run with same dirs twice to make sure that works.
{tempCacheDir, tempWorkingDir},
{tempCacheDir, tempWorkingDir},
{existingCacheDir, existingWorkingDir},
} {

configStr := `
Expand Down

0 comments on commit 514e18d

Please sign in to comment.