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()
hosts := getNetHosts(t, ctx, 2)
adversarialPeer := hosts[0]
adversary := hosts[0]
honestPeer := hosts[1]
// The adversary enables signing, but disables verification to let through
// an incorrectly signed message.
adversaryPubSub := getPubsub(
ctx,
adversarialPeer,
adversary,
WithMessageSigning(true),
WithStrictSignatureVerification(false),
)
@ -984,7 +984,7 @@ func TestImproperlySignedMessageNotRelayed(t *testing.T) {
t.Fatal(err)
}
adversarialPeerSubscription, err := adversaryPubSub.Subscribe(topic)
adversaryPeerSubscription, err := adversaryPubSub.Subscribe(topic)
if err != nil {
t.Fatal(err)
}
@ -1016,7 +1016,7 @@ func TestImproperlySignedMessageNotRelayed(t *testing.T) {
case <-ctx.Done():
return
default:
msg, err := adversarialPeerSubscription.Next(ctx)
msg, err := adversaryPeerSubscription.Next(ctx)
if err != nil {
return
}