Merge pull request #1050 from karalabe/handle-slow-download-tester

eth/downloader: fix test to it doesn't time out on a slow machine
pull/1062/head
Jeffrey Wilcke 10 years ago
commit 6b83a0a589
  1. 2
      eth/downloader/downloader_test.go

@ -382,7 +382,7 @@ func TestRepeatingHashAttack(t *testing.T) {
// Make sure that syncing returns and does so with a failure // Make sure that syncing returns and does so with a failure
select { select {
case <-time.After(100 * time.Millisecond): case <-time.After(time.Second):
t.Fatalf("synchronisation blocked") t.Fatalf("synchronisation blocked")
case err := <-errc: case err := <-errc:
if err == nil { if err == nil {

Loading…
Cancel
Save