From 7efd666dc47aef68827fc82c2b1c0a2e25bcdbab Mon Sep 17 00:00:00 2001 From: vyzo Date: Wed, 22 Apr 2020 18:53:31 +0300 Subject: [PATCH] increase wait time for IWANT spam test to 1s --- gossipsub_spam_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gossipsub_spam_test.go b/gossipsub_spam_test.go index 18b21a3..11dd7ef 100644 --- a/gossipsub_spam_test.go +++ b/gossipsub_spam_test.go @@ -51,9 +51,9 @@ func TestGossipsubAttackSpamIWANT(t *testing.T) { } } - // Wait for 200ms after the last message before checking we got the + // Wait a bit after the last message before checking we got the // right number of messages - msgWaitMax := 200 * time.Millisecond + msgWaitMax := time.Second msgCount := 0 msgTimer := time.NewTimer(msgWaitMax)