diff --git a/connect/connection_test.go b/connect/connection_test.go index 2e455a2f8d2440c890bef7507363faad707e2018..ff419c7a5973f44c0aa5b17db94f1f99c990983a 100644 --- a/connect/connection_test.go +++ b/connect/connection_test.go @@ -2,6 +2,7 @@ package connect import ( "context" + "crypto/tls" "gitlab.com/xx_network/comms/connect/token" pb "gitlab.com/xx_network/comms/messages" "gitlab.com/xx_network/comms/testkeys" @@ -127,15 +128,16 @@ func TestWebConnection_TLS(t *testing.T) { errCh := make(chan error) go func() { pc := ProtoComms{ - networkId: id.NewIdFromString("zezima", id.User, t), - privateKey: pk, - disableAuth: false, - tokens: token.NewMap(), - Manager: newManager(), - netListener: lis, - grpcServer: s, - pubKeyPem: certBytes, - salt: nil, + networkId: id.NewIdFromString("zezima", id.User, t), + privateKey: pk, + disableAuth: false, + tokens: token.NewMap(), + Manager: newManager(), + netListener: lis, + grpcServer: s, + pubKeyPem: certBytes, + salt: nil, + httpsCredChan: make(chan tls.Certificate, 1), } pc.ServeWithWeb()