diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-12-02 16:13:24 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-12-02 18:11:14 +0300 |
commit | 93572e53181b5a614c2874bd00b7a38a02de58d3 (patch) | |
tree | c0bc0b13c21a88734dd4d0437bc1e9dd7ceb6c31 /tpl | |
parent | 94f149b21e0c1d018e72cbea9e7d570785a512e9 (diff) |
resources: Add timeout to the HTTP request in Get
Workaround for https://github.com/golang/go/issues/49366
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/data/resources_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tpl/data/resources_test.go b/tpl/data/resources_test.go index 1bf6d769f..a1ce9ecb6 100644 --- a/tpl/data/resources_test.go +++ b/tpl/data/resources_test.go @@ -34,7 +34,6 @@ import ( "github.com/gohugoio/hugo/hugofs" "github.com/gohugoio/hugo/langs" "github.com/spf13/afero" - ) func TestScpGetLocal(t *testing.T) { @@ -87,7 +86,7 @@ func TestScpGetRemote(t *testing.T) { t.Parallel() c := qt.New(t) fs := new(afero.MemMapFs) - cache := filecache.NewCache(fs, 100, "") + cache := filecache.NewCache(fs, 100, 0, "") tests := []struct { path string |