resources: Add timeout to the HTTP request in Get

Workaround for https://github.com/golang/go/issues/49366
This commit is contained in:
Bjørn Erik Pedersen
2021-12-02 14:13:24 +01:00
parent 94f149b21e
commit 93572e5318
4 changed files with 12 additions and 3 deletions

View File

@@ -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"