From f6cc472c6e09d90e2d35f577ae2ac39b3640d649 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Thu, 4 Jan 2018 15:51:32 -0800 Subject: [PATCH] Removing Erroneous SendMessage & Adding SupportChannelTypes Test --- channels/contactrequestchannel.go | 1 - connection/autoconnectionhandler_test.go | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/channels/contactrequestchannel.go b/channels/contactrequestchannel.go index d358ccc..6249558 100644 --- a/channels/contactrequestchannel.go +++ b/channels/contactrequestchannel.go @@ -125,7 +125,6 @@ func (crc *ContactRequestChannel) OpenOutboundResult(err error, crm *Protocol_Da } } } - crc.channel.SendMessage([]byte{}) } // SendResponse sends a contact request status response to the requester. diff --git a/connection/autoconnectionhandler_test.go b/connection/autoconnectionhandler_test.go index 572c2b5..41f8996 100644 --- a/connection/autoconnectionhandler_test.go +++ b/connection/autoconnectionhandler_test.go @@ -35,4 +35,9 @@ func TestInit(t *testing.T) { } else { t.Errorf("Failed to build handler: %v", err) } + + types := ach.GetSupportedChannelTypes() + if len(types) != 1 { + t.Errorf("Expected only im.ricochet.auth.hidden-service to be supported instead got: %v", types) + } }