From d6f81c01f4e41829fadda2af8000c3cda9cfac76 Mon Sep 17 00:00:00 2001 From: Antonio Ojea Date: Wed, 1 Mar 2023 11:58:57 +0000 Subject: [PATCH] start to count time since the connection was actually established Change-Id: Ib4986fb362600b760a4a853513d739f2d665836e --- .../apimachinery/pkg/util/httpstream/spdy/connection_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/connection_test.go b/staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/connection_test.go index 143d8c05e3a..874474581d0 100644 --- a/staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/connection_test.go +++ b/staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/connection_test.go @@ -247,12 +247,12 @@ func TestConnectionPings(t *testing.T) { t.Fatalf("client: error connecting to proxy: %v", err) } defer clConn.Close() - start := time.Now() clSPDYConn, err := NewClientConnection(clConn) if err != nil { t.Fatalf("client: error creating spdy connection: %v", err) } defer clSPDYConn.Close() + start := time.Now() clSPDYStream, err := clSPDYConn.CreateStream(http.Header{}) if err != nil { t.Fatalf("client: error creating stream: %v", err)