@@ -691,6 +691,8 @@ func TestCanonicalSynchronisation64Fast(t *testing.T) { testCanonicalSynchronis
691
691
func TestCanonicalSynchronisation64Light (t * testing.T ) { testCanonicalSynchronisation (t , 64 , LightSync ) }
692
692
693
693
func testCanonicalSynchronisation (t * testing.T , protocol int , mode SyncMode ) {
694
+ t .Parallel ()
695
+
694
696
// Create a small enough block chain to download
695
697
targetBlocks := blockCacheLimit - 15
696
698
hashes , headers , blocks , receipts := makeChain (targetBlocks , 0 , genesis , nil )
@@ -715,6 +717,8 @@ func TestThrottling64Full(t *testing.T) { testThrottling(t, 64, FullSync) }
715
717
func TestThrottling64Fast (t * testing.T ) { testThrottling (t , 64 , FastSync ) }
716
718
717
719
func testThrottling (t * testing.T , protocol int , mode SyncMode ) {
720
+ t .Parallel ()
721
+
718
722
// Create a long block chain to download and the tester
719
723
targetBlocks := 8 * blockCacheLimit
720
724
hashes , headers , blocks , receipts := makeChain (targetBlocks , 0 , genesis , nil )
@@ -800,6 +804,8 @@ func TestForkedSynchronisation64Fast(t *testing.T) { testForkedSynchronisation(
800
804
func TestForkedSynchronisation64Light (t * testing.T ) { testForkedSynchronisation (t , 64 , LightSync ) }
801
805
802
806
func testForkedSynchronisation (t * testing.T , protocol int , mode SyncMode ) {
807
+ t .Parallel ()
808
+
803
809
// Create a long enough forked chain
804
810
common , fork := MaxHashFetch , 2 * MaxHashFetch
805
811
hashesA , hashesB , headersA , headersB , blocksA , blocksB , receiptsA , receiptsB := makeChainFork (common + fork , fork , genesis , nil )
@@ -823,6 +829,7 @@ func testForkedSynchronisation(t *testing.T, protocol int, mode SyncMode) {
823
829
824
830
// Tests that an inactive downloader will not accept incoming hashes and blocks.
825
831
func TestInactiveDownloader61 (t * testing.T ) {
832
+ t .Parallel ()
826
833
tester := newTester ()
827
834
828
835
// Check that neither hashes nor blocks are accepted
@@ -837,6 +844,7 @@ func TestInactiveDownloader61(t *testing.T) {
837
844
// Tests that an inactive downloader will not accept incoming block headers and
838
845
// bodies.
839
846
func TestInactiveDownloader62 (t * testing.T ) {
847
+ t .Parallel ()
840
848
tester := newTester ()
841
849
842
850
// Check that neither block headers nor bodies are accepted
@@ -851,6 +859,7 @@ func TestInactiveDownloader62(t *testing.T) {
851
859
// Tests that an inactive downloader will not accept incoming block headers,
852
860
// bodies and receipts.
853
861
func TestInactiveDownloader63 (t * testing.T ) {
862
+ t .Parallel ()
854
863
tester := newTester ()
855
864
856
865
// Check that neither block headers nor bodies are accepted
@@ -875,6 +884,8 @@ func TestCancel64Fast(t *testing.T) { testCancel(t, 64, FastSync) }
875
884
func TestCancel64Light (t * testing.T ) { testCancel (t , 64 , LightSync ) }
876
885
877
886
func testCancel (t * testing.T , protocol int , mode SyncMode ) {
887
+ t .Parallel ()
888
+
878
889
// Create a small enough block chain to download and the tester
879
890
targetBlocks := blockCacheLimit - 15
880
891
if targetBlocks >= MaxHashFetch {
@@ -913,6 +924,8 @@ func TestMultiSynchronisation64Fast(t *testing.T) { testMultiSynchronisation(t,
913
924
func TestMultiSynchronisation64Light (t * testing.T ) { testMultiSynchronisation (t , 64 , LightSync ) }
914
925
915
926
func testMultiSynchronisation (t * testing.T , protocol int , mode SyncMode ) {
927
+ t .Parallel ()
928
+
916
929
// Create various peers with various parts of the chain
917
930
targetPeers := 8
918
931
targetBlocks := targetPeers * blockCacheLimit - 15
@@ -940,6 +953,8 @@ func TestMultiProtoSynchronisation64Fast(t *testing.T) { testMultiProtoSync(t,
940
953
func TestMultiProtoSynchronisation64Light (t * testing.T ) { testMultiProtoSync (t , 64 , LightSync ) }
941
954
942
955
func testMultiProtoSync (t * testing.T , protocol int , mode SyncMode ) {
956
+ t .Parallel ()
957
+
943
958
// Create a small enough block chain to download
944
959
targetBlocks := blockCacheLimit - 15
945
960
hashes , headers , blocks , receipts := makeChain (targetBlocks , 0 , genesis , nil )
@@ -976,6 +991,8 @@ func TestEmptyShortCircuit64Fast(t *testing.T) { testEmptyShortCircuit(t, 64, F
976
991
func TestEmptyShortCircuit64Light (t * testing.T ) { testEmptyShortCircuit (t , 64 , LightSync ) }
977
992
978
993
func testEmptyShortCircuit (t * testing.T , protocol int , mode SyncMode ) {
994
+ t .Parallel ()
995
+
979
996
// Create a block chain to download
980
997
targetBlocks := 2 * blockCacheLimit - 15
981
998
hashes , headers , blocks , receipts := makeChain (targetBlocks , 0 , genesis , nil )
@@ -1027,6 +1044,8 @@ func TestMissingHeaderAttack64Fast(t *testing.T) { testMissingHeaderAttack(t, 6
1027
1044
func TestMissingHeaderAttack64Light (t * testing.T ) { testMissingHeaderAttack (t , 64 , LightSync ) }
1028
1045
1029
1046
func testMissingHeaderAttack (t * testing.T , protocol int , mode SyncMode ) {
1047
+ t .Parallel ()
1048
+
1030
1049
// Create a small enough block chain to download
1031
1050
targetBlocks := blockCacheLimit - 15
1032
1051
hashes , headers , blocks , receipts := makeChain (targetBlocks , 0 , genesis , nil )
@@ -1178,6 +1197,8 @@ func TestHighTDStarvationAttack64Fast(t *testing.T) { testHighTDStarvationAttac
1178
1197
func TestHighTDStarvationAttack64Light (t * testing.T ) { testHighTDStarvationAttack (t , 64 , LightSync ) }
1179
1198
1180
1199
func testHighTDStarvationAttack (t * testing.T , protocol int , mode SyncMode ) {
1200
+ t .Parallel ()
1201
+
1181
1202
tester := newTester ()
1182
1203
hashes , headers , blocks , receipts := makeChain (0 , 0 , genesis , nil )
1183
1204
@@ -1252,6 +1273,8 @@ func TestSyncProgress64Fast(t *testing.T) { testSyncProgress(t, 64, FastSync) }
1252
1273
func TestSyncProgress64Light (t * testing.T ) { testSyncProgress (t , 64 , LightSync ) }
1253
1274
1254
1275
func testSyncProgress (t * testing.T , protocol int , mode SyncMode ) {
1276
+ t .Parallel ()
1277
+
1255
1278
// Create a small enough block chain to download
1256
1279
targetBlocks := blockCacheLimit - 15
1257
1280
hashes , headers , blocks , receipts := makeChain (targetBlocks , 0 , genesis , nil )
@@ -1322,6 +1345,8 @@ func TestForkedSyncProgress64Fast(t *testing.T) { testForkedSyncProgress(t, 64,
1322
1345
func TestForkedSyncProgress64Light (t * testing.T ) { testForkedSyncProgress (t , 64 , LightSync ) }
1323
1346
1324
1347
func testForkedSyncProgress (t * testing.T , protocol int , mode SyncMode ) {
1348
+ t .Parallel ()
1349
+
1325
1350
// Create a forked chain to simulate origin revertal
1326
1351
common , fork := MaxHashFetch , 2 * MaxHashFetch
1327
1352
hashesA , hashesB , headersA , headersB , blocksA , blocksB , receiptsA , receiptsB := makeChainFork (common + fork , fork , genesis , nil )
@@ -1395,6 +1420,8 @@ func TestFailedSyncProgress64Fast(t *testing.T) { testFailedSyncProgress(t, 64,
1395
1420
func TestFailedSyncProgress64Light (t * testing.T ) { testFailedSyncProgress (t , 64 , LightSync ) }
1396
1421
1397
1422
func testFailedSyncProgress (t * testing.T , protocol int , mode SyncMode ) {
1423
+ t .Parallel ()
1424
+
1398
1425
// Create a small enough block chain to download
1399
1426
targetBlocks := blockCacheLimit - 15
1400
1427
hashes , headers , blocks , receipts := makeChain (targetBlocks , 0 , genesis , nil )
@@ -1469,6 +1496,8 @@ func TestFakedSyncProgress64Fast(t *testing.T) { testFakedSyncProgress(t, 64, F
1469
1496
func TestFakedSyncProgress64Light (t * testing.T ) { testFakedSyncProgress (t , 64 , LightSync ) }
1470
1497
1471
1498
func testFakedSyncProgress (t * testing.T , protocol int , mode SyncMode ) {
1499
+ t .Parallel ()
1500
+
1472
1501
// Create a small block chain
1473
1502
targetBlocks := blockCacheLimit - 15
1474
1503
hashes , headers , blocks , receipts := makeChain (targetBlocks + 3 , 0 , genesis , nil )
0 commit comments