Skip to content

Commit

Permalink
eth: increase timeout in TestBroadcastBlock (ethereum#18064)
Browse files Browse the repository at this point in the history
  • Loading branch information
fjl authored and cryptomental committed Jan 9, 2019
1 parent 9fddcbf commit dcc693b
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 dcc693b

Please sign in to comment.