Merge pull request #116176 from aojea/testpingspdy

start to count time since the connection was actually established
This commit is contained in:
Kubernetes Prow Robot 2023-03-01 07:05:29 -08:00 committed by GitHub
commit 44bedc2a46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)