- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for errc2 (0.12 sec)
-
src/net/http/serve_test.go
func testServerWriteTimeout(t *testing.T, mode testMode) { for timeout := 5 * time.Millisecond; ; timeout *= 2 { errc := make(chan error, 2) cst := newClientServerTest(t, mode, HandlerFunc(func(res ResponseWriter, req *Request) { errc <- nil _, err := io.Copy(res, neverEnding('a')) errc <- err }), func(ts *httptest.Server) { ts.Config.WriteTimeout = timeout t.Logf("Server.Config.WriteTimeout = %v", timeout)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 17:57:01 UTC 2024 - 202K bytes - Viewed (0) -
src/net/http/transport_test.go
tr := c.Transport.(*Transport) tr.MaxConnsPerHost = 1 errCh := make(chan error, 300) doReq := func() { resp, err := c.Get(ts.URL) if err != nil { errCh <- fmt.Errorf("request failed: %v", err) return } defer resp.Body.Close() _, err = io.ReadAll(resp.Body) if err != nil { errCh <- fmt.Errorf("read body failed: %v", err) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 21:59:21 UTC 2024 - 192.6K bytes - Viewed (0) -
pkg/scheduler/internal/queue/scheduling_queue_test.go
q.MoveAllToActiveOrBackoffQueue(logger, UnschedulableTimeout, nil, nil, nil) // At this time, newerPod should be popped // because it is the oldest tried pod. p2, err2 := q.Pop(logger) if err2 != nil { t.Errorf("Error while popping the head of the queue: %v", err2) } if p2.Pod != newerPod { t.Errorf("Expected that test-newer-pod was popped, got %v", p2.Pod.Name) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 146.9K bytes - Viewed (0) -
cmd/site-replication.go
return err } } err := objAPI.DeleteBucket(ctx, bucket, opts) if err != nil { if globalDNSConfig != nil { if err2 := globalDNSConfig.Put(bucket); err2 != nil { replLogIf(ctx, fmt.Errorf("Unable to restore bucket DNS entry %w, please fix it manually", err2)) } } return err } globalNotificationSys.DeleteBucketMetadata(ctx, bucket) return nil }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 184.3K bytes - Viewed (0)