cache/filecache: Simplify test

See #5497
This commit is contained in:
Bjørn Erik Pedersen 2018-12-04 18:19:37 +01:00
parent b804a70881
commit 514e18dc27

View file

@ -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 := `