shithub: hugo

Download patch

ref: 514e18dc27ce37a0e9a231741d616cf29d50d610
parent: b804a70881c7be26dc15274c4f98f1057469cbc1
author: Bjørn Erik Pedersen <[email protected]>
date: Tue Dec 4 13:19:37 EST 2018

cache/filecache: Simplify test

See #5497

--- a/cache/filecache/filecache_test.go
+++ b/cache/filecache/filecache_test.go
@@ -49,15 +49,13 @@
 
 	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},
-		{existingCacheDir, existingWorkingDir},
+		{tempCacheDir, tempWorkingDir},
 	} {
 
 		configStr := `