mirror of
https://github.com/logos-messaging/go-libp2p-pubsub.git
synced 2026-01-02 21:03:07 +00:00
Ensure that the received message is the correct one
This commit is contained in:
parent
ed746477f9
commit
b44471d7ce
@ -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,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user