summaryrefslogtreecommitdiff
path: root/src/pkg/http/export_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/http/export_test.go')
-rw-r--r--src/pkg/http/export_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pkg/http/export_test.go b/src/pkg/http/export_test.go
index 47c687760..3fe658641 100644
--- a/src/pkg/http/export_test.go
+++ b/src/pkg/http/export_test.go
@@ -32,3 +32,10 @@ func (t *Transport) IdleConnCountForTesting(cacheKey string) int {
}
return len(conns)
}
+
+func NewTestTimeoutHandler(handler Handler, ch <-chan int64) Handler {
+ f := func() <-chan int64 {
+ return ch
+ }
+ return &timeoutHandler{handler, f, ""}
+}