aboutsummaryrefslogtreecommitdiff
path: root/src/net/http/export_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/http/export_test.go')
-rw-r--r--src/net/http/export_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/http/export_test.go b/src/net/http/export_test.go
index f3939db27d..514d02b2a3 100644
--- a/src/net/http/export_test.go
+++ b/src/net/http/export_test.go
@@ -121,12 +121,12 @@ func (t *Transport) RequestIdleConnChForTesting() {
func (t *Transport) PutIdleTestConn() bool {
c, _ := net.Pipe()
- return t.putIdleConn(&persistConn{
+ return t.tryPutIdleConn(&persistConn{
t: t,
conn: c, // dummy
closech: make(chan struct{}), // so it can be closed
cacheKey: connectMethodKey{"", "http", "example.com"},
- })
+ }) == nil
}
// All test hooks must be non-nil so they can be called directly,