From 1f39746886ce96436aec255347e19fc57edf74b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Wed, 30 Dec 2015 14:06:09 +0200 Subject: [PATCH] eth/downloader: throttling tests are time-sensitive, don't run parallel --- eth/downloader/downloader_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/eth/downloader/downloader_test.go b/eth/downloader/downloader_test.go index f02418a2f..347a0e3f0 100644 --- a/eth/downloader/downloader_test.go +++ b/eth/downloader/downloader_test.go @@ -720,8 +720,6 @@ func TestThrottling64Full(t *testing.T) { testThrottling(t, 64, FullSync) } func TestThrottling64Fast(t *testing.T) { testThrottling(t, 64, FastSync) } func testThrottling(t *testing.T, protocol int, mode SyncMode) { - t.Parallel() - // Create a long block chain to download and the tester targetBlocks := 8 * blockCacheLimit hashes, headers, blocks, receipts := makeChain(targetBlocks, 0, genesis, nil) @@ -751,7 +749,7 @@ func testThrottling(t *testing.T, protocol int, mode SyncMode) { } // Wait a bit for sync to throttle itself var cached, frozen int - for start := time.Now(); time.Since(start) < time.Second; { + for start := time.Now(); time.Since(start) < 3*time.Second; { time.Sleep(25 * time.Millisecond) tester.lock.Lock()