parent
b804a70881
commit
514e18dc27
|
@ -49,15 +49,13 @@ func TestFileCache(t *testing.T) {
|
||||||
|
|
||||||
osfs := afero.NewOsFs()
|
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 {
|
for _, test := range []struct {
|
||||||
cacheDir string
|
cacheDir string
|
||||||
workingDir string
|
workingDir string
|
||||||
}{
|
}{
|
||||||
|
// Run with same dirs twice to make sure that works.
|
||||||
|
{tempCacheDir, tempWorkingDir},
|
||||||
{tempCacheDir, tempWorkingDir},
|
{tempCacheDir, tempWorkingDir},
|
||||||
{existingCacheDir, existingWorkingDir},
|
|
||||||
} {
|
} {
|
||||||
|
|
||||||
configStr := `
|
configStr := `
|
||||||
|
|
Loading…
Reference in New Issue