mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-10 07:46:59 +00:00
server/internal/client/ollama: handle some network errors gracefully (#10317)
This commit is contained in:
@@ -605,8 +605,8 @@ func checkRequest(t *testing.T, req *http.Request, method, path string) {
|
||||
}
|
||||
}
|
||||
|
||||
func newRegistryClient(t *testing.T, h http.HandlerFunc) (*Registry, context.Context) {
|
||||
s := httptest.NewServer(h)
|
||||
func newRegistryClient(t *testing.T, upstream http.HandlerFunc) (*Registry, context.Context) {
|
||||
s := httptest.NewServer(upstream)
|
||||
t.Cleanup(s.Close)
|
||||
cache, err := blob.Open(t.TempDir())
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user