fix apparent flakiness in test

This commit is contained in:
vyzo 2020-04-28 18:51:16 +03:00
parent 5a7a4fcf84
commit deee35d9b8
1 changed files with 2 additions and 0 deletions

View File

@ -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()