mirror of
https://github.com/logos-messaging/go-libp2p-pubsub.git
synced 2026-01-07 15:23:08 +00:00
increase wait time for IWANT spam test to 1s
This commit is contained in:
parent
bac5d5910c
commit
7efd666dc4
@ -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
|
// right number of messages
|
||||||
msgWaitMax := 200 * time.Millisecond
|
msgWaitMax := time.Second
|
||||||
msgCount := 0
|
msgCount := 0
|
||||||
msgTimer := time.NewTimer(msgWaitMax)
|
msgTimer := time.NewTimer(msgWaitMax)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user