From 8c398ff56823af7c0dd171768e34db0ad2e1a5b1 Mon Sep 17 00:00:00 2001 From: jbhusson <jonah@elixxir.io> Date: Wed, 23 Nov 2022 09:57:28 -0500 Subject: [PATCH] Fix tests --- connect/connection_test.go | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/connect/connection_test.go b/connect/connection_test.go index 2e455a2..ff419c7 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() -- GitLab