adversarial -> adversary

This commit is contained in:
Raghav Gulati 2019-05-07 10:14:37 -07:00
parent b44471d7ce
commit d740f53531
No known key found for this signature in database
GPG Key ID: EA2C73F6F7EF2701
1 changed files with 4 additions and 4 deletions

View File

@ -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
} }