adversarial -> adversary
This commit is contained in:
parent
b44471d7ce
commit
d740f53531
|
@ -954,14 +954,14 @@ func TestImproperlySignedMessageNotRelayed(t *testing.T) {
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
hosts := getNetHosts(t, ctx, 2)
|
hosts := getNetHosts(t, ctx, 2)
|
||||||
adversarialPeer := hosts[0]
|
adversary := hosts[0]
|
||||||
honestPeer := hosts[1]
|
honestPeer := hosts[1]
|
||||||
|
|
||||||
// The adversary enables signing, but disables verification to let through
|
// The adversary enables signing, but disables verification to let through
|
||||||
// an incorrectly signed message.
|
// an incorrectly signed message.
|
||||||
adversaryPubSub := getPubsub(
|
adversaryPubSub := getPubsub(
|
||||||
ctx,
|
ctx,
|
||||||
adversarialPeer,
|
adversary,
|
||||||
WithMessageSigning(true),
|
WithMessageSigning(true),
|
||||||
WithStrictSignatureVerification(false),
|
WithStrictSignatureVerification(false),
|
||||||
)
|
)
|
||||||
|
@ -984,7 +984,7 @@ func TestImproperlySignedMessageNotRelayed(t *testing.T) {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
adversarialPeerSubscription, err := adversaryPubSub.Subscribe(topic)
|
adversaryPeerSubscription, err := adversaryPubSub.Subscribe(topic)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
@ -1016,7 +1016,7 @@ func TestImproperlySignedMessageNotRelayed(t *testing.T) {
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
return
|
return
|
||||||
default:
|
default:
|
||||||
msg, err := adversarialPeerSubscription.Next(ctx)
|
msg, err := adversaryPeerSubscription.Next(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue