Commit 2e603424 authored by Dirk McCormick's avatar Dirk McCormick

test: fix another flaky test

parent cc1224e6
......@@ -1007,7 +1007,7 @@ func TestTaggingPeers(t *testing.T) {
}
func TestTaggingUseful(t *testing.T) {
peerSampleInterval := 2 * time.Millisecond
peerSampleInterval := 5 * time.Millisecond
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second)
defer cancel()
......@@ -1027,7 +1027,7 @@ func TestTaggingUseful(t *testing.T) {
if me.PeerTagger.count(me.Engine.tagUseful) != 1 {
t.Fatal("Peers should be tagged but weren't")
}
time.Sleep(peerSampleInterval * 8)
time.Sleep(peerSampleInterval * 10)
}
if me.PeerTagger.count(me.Engine.tagUseful) == 0 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment