Add a note why we're expecting two messages
As the adversary has turned of signature verification, we should expect to see two messages (the correctly signed and the incorrectly signed one) when we publish. Those that have verification on, should only see one.
This commit is contained in:
parent
84bb35ebf4
commit
594e6a4ab9
@ -1022,6 +1022,9 @@ func TestImproperlySignedMessageRejected(t *testing.T) {
|
|||||||
<-time.After(1 * time.Second)
|
<-time.After(1 * time.Second)
|
||||||
adversaryCancel()
|
adversaryCancel()
|
||||||
|
|
||||||
|
// Ensure the adversary successfully publishes the incorrectly signed
|
||||||
|
// message. If the adversary "sees" this, we successfully got through
|
||||||
|
// their local validation.
|
||||||
if len(adversaryMessages) != 2 {
|
if len(adversaryMessages) != 2 {
|
||||||
t.Fatalf("got %d messages, expected 2", len(adversaryMessages))
|
t.Fatalf("got %d messages, expected 2", len(adversaryMessages))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user