Ensure that the received message is the correct one

This commit is contained in:
Raghav Gulati 2019-05-07 10:10:05 -07:00
parent ed746477f9
commit b44471d7ce
No known key found for this signature in database
GPG Key ID: EA2C73F6F7EF2701

View File

@ -1057,4 +1057,11 @@ func TestImproperlySignedMessageNotRelayed(t *testing.T) {
if len(honestPeerMessages) != 1 {
t.Fatalf("got %d messages, expected 1", len(honestPeerMessages))
}
if string(honestPeerMessages[0].GetData()) != string(correctMessage) {
t.Fatalf(
"got %s, expected message %s",
honestPeerMessages[0].GetData(),
correctMessage,
)
}
}