aboutsummaryrefslogtreecommitdiffhomepage
path: root/cache/filecache
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2018-12-04 18:19:37 +0100
committerBjørn Erik Pedersen <[email protected]>2018-12-04 19:19:20 +0100
commit514e18dc27ce37a0e9a231741d616cf29d50d610 (patch)
treecd29120b90dce8f563121551e3e18812c3f19e73 /cache/filecache
parentb804a70881c7be26dc15274c4f98f1057469cbc1 (diff)
downloadhugo-514e18dc27ce37a0e9a231741d616cf29d50d610.tar.gz
hugo-514e18dc27ce37a0e9a231741d616cf29d50d610.zip
cache/filecache: Simplify test
See #5497
Diffstat (limited to 'cache/filecache')
-rw-r--r--cache/filecache/filecache_test.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/cache/filecache/filecache_test.go b/cache/filecache/filecache_test.go
index 4abf8bc5a..5ac2e9beb 100644
--- a/cache/filecache/filecache_test.go
+++ b/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 := `