diff options
Diffstat (limited to 'src/net/http/export_test.go')
| -rw-r--r-- | src/net/http/export_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/http/export_test.go b/src/net/http/export_test.go index e14181a21b..94d55ab2f6 100644 --- a/src/net/http/export_test.go +++ b/src/net/http/export_test.go @@ -59,9 +59,9 @@ func SetTestHookServerServe(fn func(*Server, net.Listener)) { testHookServerServ func NewTestTimeoutHandler(handler Handler, ch <-chan time.Time) Handler { return &timeoutHandler{ - handler: handler, - timeout: func() <-chan time.Time { return ch }, - // (no body and nil cancelTimer) + handler: handler, + testTimeout: ch, + // (no body) } } |
