From 9ad283cb93f3d37c74733a3fdbdea2eff8495fbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Tue, 13 Oct 2015 16:28:12 +0300 Subject: [PATCH] retest again --- eth/downloader/downloader_test.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/eth/downloader/downloader_test.go b/eth/downloader/downloader_test.go index a70d8932ac..63377e6176 100644 --- a/eth/downloader/downloader_test.go +++ b/eth/downloader/downloader_test.go @@ -43,13 +43,6 @@ var ( genesis = core.GenesisBlockForTesting(testdb, testAddress, big.NewInt(1000000000)) ) -func init() { - go func() { - time.Sleep(5 * time.Minute) - panic("wtf2") - }() -} - // makeChain creates a chain of n blocks starting at and including parent. // the returned hash chain is ordered head->parent. In addition, every 3rd block // contains a transaction and every 5th an uncle to allow testing correct block @@ -750,7 +743,7 @@ func testThrottling(t *testing.T, protocol int, mode SyncMode) { retrieved = len(tester.ownBlocks) tester.downloader.queue.lock.RUnlock() tester.lock.RUnlock() - + if cached == blockCacheLimit || retrieved+cached+int(atomic.LoadUint32(&blocked)) == targetBlocks+1 { break }