mirror of
https://github.com/logos-messaging/go-libp2p-pubsub.git
synced 2026-01-07 15:23:08 +00:00
Reduce time to wait
2 seconds per wait seemed a bit aggressive. Halved the total time of the test.
This commit is contained in:
parent
c33d8a8353
commit
ed746477f9
@ -1025,7 +1025,7 @@ func TestImproperlySignedMessageNotRelayed(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}(adversaryContext)
|
}(adversaryContext)
|
||||||
|
|
||||||
<-time.After(2 * time.Second)
|
<-time.After(1 * time.Second)
|
||||||
adversaryCancel()
|
adversaryCancel()
|
||||||
|
|
||||||
if len(adversaryMessages) != 2 {
|
if len(adversaryMessages) != 2 {
|
||||||
@ -1051,7 +1051,7 @@ func TestImproperlySignedMessageNotRelayed(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}(honestPeerContext)
|
}(honestPeerContext)
|
||||||
|
|
||||||
<-time.After(2 * time.Second)
|
<-time.After(1 * time.Second)
|
||||||
honestPeerCancel()
|
honestPeerCancel()
|
||||||
|
|
||||||
if len(honestPeerMessages) != 1 {
|
if len(honestPeerMessages) != 1 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user