From 514e18dc27ce37a0e9a231741d616cf29d50d610 Mon Sep 17 00:00:00 2001 From: Bjørn Erik Pedersen Date: Tue, 4 Dec 2018 18:19:37 +0100 Subject: cache/filecache: Simplify test See #5497 --- cache/filecache/filecache_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'cache/filecache') 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 := ` -- cgit v1.2.3