Skip to content

Commit

Permalink
eth: increase timeout in TestBroadcastBlock (#18064)
Browse files Browse the repository at this point in the history
  • Loading branch information
fjl authored and karalabe committed Nov 23, 2018
1 parent 76f5f66 commit b24ef5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eth/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ func testBroadcastBlock(t *testing.T, totalPeers, broadcastExpected int) {
}
}(peer)
}
timeoutCh := time.NewTimer(time.Millisecond * 100).C
timeout := time.After(300 * time.Millisecond)
var receivedCount int
outer:
for {
Expand All @@ -597,7 +597,7 @@ outer:
if receivedCount == totalPeers {
break outer
}
case <-timeoutCh:
case <-timeout:
break outer
}
}
Expand Down

0 comments on commit b24ef5e

Please sign in to comment.