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…
Reference in New Issue