aboutsummaryrefslogtreecommitdiffhomepage
path: root/cache
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2021-12-02 14:13:24 +0100
committerBjørn Erik Pedersen <[email protected]>2021-12-02 16:11:14 +0100
commit93572e53181b5a614c2874bd00b7a38a02de58d3 (patch)
treec0bc0b13c21a88734dd4d0437bc1e9dd7ceb6c31 /cache
parent94f149b21e0c1d018e72cbea9e7d570785a512e9 (diff)
downloadhugo-93572e53181b5a614c2874bd00b7a38a02de58d3.tar.gz
hugo-93572e53181b5a614c2874bd00b7a38a02de58d3.zip
resources: Add timeout to the HTTP request in Get
Workaround for https://github.com/golang/go/issues/49366
Diffstat (limited to 'cache')
-rw-r--r--cache/filecache/filecache_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cache/filecache/filecache_test.go b/cache/filecache/filecache_test.go
index 6a051a264..6ac36a5c1 100644
--- a/cache/filecache/filecache_test.go
+++ b/cache/filecache/filecache_test.go
@@ -276,7 +276,7 @@ func TestFileCacheReadOrCreateErrorInRead(t *testing.T) {
}
}
- cache := NewCache(afero.NewMemMapFs(), 100*time.Hour, "")
+ cache := NewCache(afero.NewMemMapFs(), 100*time.Hour, 0, "")
const id = "a32"