From d740f535311f46dbc223fd8460bdfb98f3be48a1 Mon Sep 17 00:00:00 2001 From: Raghav Gulati Date: Tue, 7 May 2019 10:14:37 -0700 Subject: [PATCH] adversarial -> adversary --- floodsub_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/floodsub_test.go b/floodsub_test.go index 52ba129..f54a17e 100644 --- a/floodsub_test.go +++ b/floodsub_test.go @@ -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 }