fix apparent flakiness in test
This commit is contained in:
parent
5a7a4fcf84
commit
deee35d9b8
|
@ -1399,6 +1399,8 @@ func TestGossipsubScoreValidatorEx(t *testing.T) {
|
|||
t.Fatal(err)
|
||||
}
|
||||
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
|
||||
expectNoMessage := func(sub *Subscription) {
|
||||
ctx, cancel := context.WithTimeout(ctx, 100*time.Millisecond)
|
||||
defer cancel()
|
||||
|
|
Loading…
Reference in New Issue