- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for testTimeoutHandler (0.24 sec)
-
src/net/http/serve_test.go
} func (c cancelableTimeoutContext) Err() error { if c.Context.Err() != nil { return context.DeadlineExceeded } return nil } func TestTimeoutHandler(t *testing.T) { run(t, testTimeoutHandler) } func testTimeoutHandler(t *testing.T, mode testMode) { sendHi := make(chan bool, 1) writeErrors := make(chan error, 1) sayHi := HandlerFunc(func(w ResponseWriter, r *Request) { <-sendHi
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 17:57:01 UTC 2024 - 202K bytes - Viewed (0)