Skip to content
Snippets Groups Projects
Commit 1d29bc16 authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

fixed the messageTest

parent 2f78a773
No related branches found
No related tags found
5 merge requests!510Release,!419rewrote the health tracker to both consider if there are waiting rounds and...,!371[Channel RSAtoPrivate] Implement Reverse Asymmetric in Client/Broadcast,!354Channels impl,!340Project/channels
...@@ -31,14 +31,12 @@ func TestUserMessageInternal_GetChannelMessage(t *testing.T) { ...@@ -31,14 +31,12 @@ func TestUserMessageInternal_GetChannelMessage(t *testing.T) {
} }
internal, _ := NewUserMessageInternal(usrMsg) internal, _ := NewUserMessageInternal(usrMsg)
received, err := internal.GetChannelMessage() received := internal.GetChannelMessage()
if err != nil {
t.Fatalf("GetChannelMessage error: %v", err)
}
if !bytes.Equal(received.Payload, channelMsg.Payload) { if !bytes.Equal(received.Payload, channelMsg.Payload) {
t.Fatalf("GetChannelMessage did not return expected data."+ t.Fatalf("GetChannelMessage did not return expected data."+
"\nExpected: %v"+ "\nExpected: %v"+
"\nReceived: %v", channelMsg, received) "\nReceived: %v", channelMsg, received)
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment