Permalink
Browse files

cache/filecache: Simplify test

See #5497
  • Loading branch information...
bep committed Dec 4, 2018
1 parent b804a70 commit 514e18dc27ce37a0e9a231741d616cf29d50d610
Showing with 2 additions and 4 deletions.
  1. +2 −4 cache/filecache/filecache_test.go
@@ -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 := `

0 comments on commit 514e18d

Please sign in to comment.