Use HandshakeContext instead of Handshake for TLS Connections set up (#40588)

This commit is contained in:
Marco André Dinis
2024-04-29 07:31:31 +00:00
committed by GitHub
parent 8b512d7954
commit 0ab0909367
12 changed files with 18 additions and 18 deletions
+2 -2
View File
@@ -379,7 +379,7 @@ func makeTLSConn(t *testing.T, server, client net.Conn) (*tls.Conn, *tls.Conn) {
tlsConnChan <- struct {
*tls.Conn
error
}{tlsConn, tlsConn.Handshake()}
}{tlsConn, tlsConn.HandshakeContext(ctx)}
}()
// Client
@@ -388,7 +388,7 @@ func makeTLSConn(t *testing.T, server, client net.Conn) (*tls.Conn, *tls.Conn) {
tlsConnChan <- struct {
*tls.Conn
error
}{tlsConn, tlsConn.Handshake()}
}{tlsConn, tlsConn.HandshakeContext(ctx)}
}()
tlsConnSlice := make([]*tls.Conn, 2)