mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
resources: Add timeout to the HTTP request in Get
Workaround for https://github.com/golang/go/issues/49366
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user