Removing Erroneous SendMessage & Adding SupportChannelTypes Test

This commit is contained in:
Sarah Jamie Lewis 2018-01-04 15:51:32 -08:00
parent 617ca019f8
commit f6cc472c6e
2 changed files with 5 additions and 1 deletions

View File

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

View File

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