@@ -22,6 +22,8 @@ import (
22
22
)
23
23
24
24
func TestUpdateAuthorities (t * testing.T ) {
25
+ t .Parallel ()
26
+
25
27
kr , err := keystore .NewEd25519Keyring ()
26
28
require .NoError (t , err )
27
29
aliceKeyPair := kr .Alice ().(* ed25519.Keypair )
@@ -50,6 +52,8 @@ func TestUpdateAuthorities(t *testing.T) {
50
52
}
51
53
52
54
func TestGetDirectVotes (t * testing.T ) {
55
+ t .Parallel ()
56
+
53
57
kr , err := keystore .NewEd25519Keyring ()
54
58
require .NoError (t , err )
55
59
aliceKeyPair := kr .Alice ().(* ed25519.Keypair )
@@ -87,6 +91,8 @@ func TestGetDirectVotes(t *testing.T) {
87
91
}
88
92
89
93
func TestGetVotesForBlock_NoDescendantVotes (t * testing.T ) {
94
+ t .Parallel ()
95
+
90
96
kr , err := keystore .NewEd25519Keyring ()
91
97
require .NoError (t , err )
92
98
aliceKeyPair := kr .Alice ().(* ed25519.Keypair )
@@ -127,6 +133,8 @@ func TestGetVotesForBlock_NoDescendantVotes(t *testing.T) {
127
133
}
128
134
129
135
func TestGetVotesForBlock_DescendantVotes (t * testing.T ) {
136
+ t .Parallel ()
137
+
130
138
kr , err := keystore .NewEd25519Keyring ()
131
139
require .NoError (t , err )
132
140
aliceKeyPair := kr .Alice ().(* ed25519.Keypair )
@@ -181,6 +189,8 @@ func TestGetVotesForBlock_DescendantVotes(t *testing.T) {
181
189
}
182
190
183
191
func TestGetPossibleSelectedAncestors_SameAncestor (t * testing.T ) {
192
+ t .Parallel ()
193
+
184
194
kr , err := keystore .NewEd25519Keyring ()
185
195
require .NoError (t , err )
186
196
aliceKeyPair := kr .Alice ().(* ed25519.Keypair )
@@ -239,6 +249,8 @@ func TestGetPossibleSelectedAncestors_SameAncestor(t *testing.T) {
239
249
}
240
250
241
251
func TestGetPossibleSelectedAncestors_VaryingAncestor (t * testing.T ) {
252
+ t .Parallel ()
253
+
242
254
kr , err := keystore .NewEd25519Keyring ()
243
255
require .NoError (t , err )
244
256
aliceKeyPair := kr .Alice ().(* ed25519.Keypair )
@@ -297,6 +309,8 @@ func TestGetPossibleSelectedAncestors_VaryingAncestor(t *testing.T) {
297
309
}
298
310
299
311
func TestGetPossibleSelectedAncestors_VaryingAncestor_MoreBranches (t * testing.T ) {
312
+ t .Parallel ()
313
+
300
314
kr , err := keystore .NewEd25519Keyring ()
301
315
require .NoError (t , err )
302
316
aliceKeyPair := kr .Alice ().(* ed25519.Keypair )
@@ -361,6 +375,8 @@ func TestGetPossibleSelectedAncestors_VaryingAncestor_MoreBranches(t *testing.T)
361
375
}
362
376
363
377
func TestGetPossibleSelectedBlocks_OneBlock (t * testing.T ) {
378
+ t .Parallel ()
379
+
364
380
kr , err := keystore .NewEd25519Keyring ()
365
381
require .NoError (t , err )
366
382
aliceKeyPair := kr .Alice ().(* ed25519.Keypair )
@@ -397,6 +413,8 @@ func TestGetPossibleSelectedBlocks_OneBlock(t *testing.T) {
397
413
}
398
414
399
415
func TestGetPossibleSelectedBlocks_EqualVotes_SameAncestor (t * testing.T ) {
416
+ t .Parallel ()
417
+
400
418
kr , err := keystore .NewEd25519Keyring ()
401
419
require .NoError (t , err )
402
420
aliceKeyPair := kr .Alice ().(* ed25519.Keypair )
@@ -448,6 +466,8 @@ func TestGetPossibleSelectedBlocks_EqualVotes_SameAncestor(t *testing.T) {
448
466
}
449
467
450
468
func TestGetPossibleSelectedBlocks_EqualVotes_VaryingAncestor (t * testing.T ) {
469
+ t .Parallel ()
470
+
451
471
kr , err := keystore .NewEd25519Keyring ()
452
472
require .NoError (t , err )
453
473
aliceKeyPair := kr .Alice ().(* ed25519.Keypair )
@@ -500,6 +520,8 @@ func TestGetPossibleSelectedBlocks_EqualVotes_VaryingAncestor(t *testing.T) {
500
520
}
501
521
502
522
func TestGetPossibleSelectedBlocks_OneThirdEquivocating (t * testing.T ) {
523
+ t .Parallel ()
524
+
503
525
kr , err := keystore .NewEd25519Keyring ()
504
526
require .NoError (t , err )
505
527
aliceKeyPair := kr .Alice ().(* ed25519.Keypair )
@@ -545,6 +567,8 @@ func TestGetPossibleSelectedBlocks_OneThirdEquivocating(t *testing.T) {
545
567
}
546
568
547
569
func TestGetPossibleSelectedBlocks_MoreThanOneThirdEquivocating (t * testing.T ) {
570
+ t .Parallel ()
571
+
548
572
kr , err := keystore .NewEd25519Keyring ()
549
573
require .NoError (t , err )
550
574
aliceKeyPair := kr .Alice ().(* ed25519.Keypair )
@@ -596,6 +620,8 @@ func TestGetPossibleSelectedBlocks_MoreThanOneThirdEquivocating(t *testing.T) {
596
620
}
597
621
598
622
func TestGetPreVotedBlock_OneBlock (t * testing.T ) {
623
+ t .Parallel ()
624
+
599
625
kr , err := keystore .NewEd25519Keyring ()
600
626
require .NoError (t , err )
601
627
aliceKeyPair := kr .Alice ().(* ed25519.Keypair )
@@ -631,6 +657,8 @@ func TestGetPreVotedBlock_OneBlock(t *testing.T) {
631
657
}
632
658
633
659
func TestGetPreVotedBlock_MultipleCandidates (t * testing.T ) {
660
+ t .Parallel ()
661
+
634
662
kr , err := keystore .NewEd25519Keyring ()
635
663
require .NoError (t , err )
636
664
aliceKeyPair := kr .Alice ().(* ed25519.Keypair )
@@ -681,6 +709,8 @@ func TestGetPreVotedBlock_MultipleCandidates(t *testing.T) {
681
709
}
682
710
683
711
func TestGetPreVotedBlock_EvenMoreCandidates (t * testing.T ) {
712
+ t .Parallel ()
713
+
684
714
kr , err := keystore .NewEd25519Keyring ()
685
715
require .NoError (t , err )
686
716
aliceKeyPair := kr .Alice ().(* ed25519.Keypair )
@@ -753,6 +783,8 @@ func TestGetPreVotedBlock_EvenMoreCandidates(t *testing.T) {
753
783
}
754
784
755
785
func TestFindParentWithNumber (t * testing.T ) {
786
+ t .Parallel ()
787
+
756
788
kr , err := keystore .NewEd25519Keyring ()
757
789
require .NoError (t , err )
758
790
aliceKeyPair := kr .Alice ().(* ed25519.Keypair )
@@ -818,6 +850,8 @@ func TestGetBestFinalCandidate_OneBlock(t *testing.T) {
818
850
}
819
851
820
852
func TestGetBestFinalCandidate_PrecommitAncestor (t * testing.T ) {
853
+ t .Parallel ()
854
+
821
855
kr , err := keystore .NewEd25519Keyring ()
822
856
require .NoError (t , err )
823
857
aliceKeyPair := kr .Alice ().(* ed25519.Keypair )
@@ -864,6 +898,8 @@ func TestGetBestFinalCandidate_PrecommitAncestor(t *testing.T) {
864
898
}
865
899
866
900
func TestGetBestFinalCandidate_NoPrecommit (t * testing.T ) {
901
+ t .Parallel ()
902
+
867
903
kr , err := keystore .NewEd25519Keyring ()
868
904
require .NoError (t , err )
869
905
aliceKeyPair := kr .Alice ().(* ed25519.Keypair )
@@ -904,6 +940,8 @@ func TestGetBestFinalCandidate_NoPrecommit(t *testing.T) {
904
940
}
905
941
906
942
func TestGetBestFinalCandidate_PrecommitOnAnotherChain (t * testing.T ) {
943
+ t .Parallel ()
944
+
907
945
kr , err := keystore .NewEd25519Keyring ()
908
946
require .NoError (t , err )
909
947
aliceKeyPair := kr .Alice ().(* ed25519.Keypair )
@@ -950,6 +988,8 @@ func TestGetBestFinalCandidate_PrecommitOnAnotherChain(t *testing.T) {
950
988
}
951
989
952
990
func TestDeterminePreVote_NoPrimaryPreVote (t * testing.T ) {
991
+ t .Parallel ()
992
+
953
993
kr , err := keystore .NewEd25519Keyring ()
954
994
require .NoError (t , err )
955
995
aliceKeyPair := kr .Alice ().(* ed25519.Keypair )
@@ -966,6 +1006,8 @@ func TestDeterminePreVote_NoPrimaryPreVote(t *testing.T) {
966
1006
}
967
1007
968
1008
func TestDeterminePreVote_WithPrimaryPreVote (t * testing.T ) {
1009
+ t .Parallel ()
1010
+
969
1011
kr , err := keystore .NewEd25519Keyring ()
970
1012
require .NoError (t , err )
971
1013
aliceKeyPair := kr .Alice ().(* ed25519.Keypair )
@@ -991,6 +1033,8 @@ func TestDeterminePreVote_WithPrimaryPreVote(t *testing.T) {
991
1033
}
992
1034
993
1035
func TestDeterminePreVote_WithInvalidPrimaryPreVote (t * testing.T ) {
1036
+ t .Parallel ()
1037
+
994
1038
kr , err := keystore .NewEd25519Keyring ()
995
1039
require .NoError (t , err )
996
1040
aliceKeyPair := kr .Alice ().(* ed25519.Keypair )
@@ -1017,6 +1061,8 @@ func TestDeterminePreVote_WithInvalidPrimaryPreVote(t *testing.T) {
1017
1061
}
1018
1062
1019
1063
func TestGetGrandpaGHOST_CommonAncestor (t * testing.T ) {
1064
+ t .Parallel ()
1065
+
1020
1066
kr , err := keystore .NewEd25519Keyring ()
1021
1067
require .NoError (t , err )
1022
1068
aliceKeyPair := kr .Alice ().(* ed25519.Keypair )
@@ -1055,6 +1101,8 @@ func TestGetGrandpaGHOST_CommonAncestor(t *testing.T) {
1055
1101
}
1056
1102
1057
1103
func TestGetGrandpaGHOST_MultipleCandidates (t * testing.T ) {
1104
+ t .Parallel ()
1105
+
1058
1106
kr , err := keystore .NewEd25519Keyring ()
1059
1107
require .NoError (t , err )
1060
1108
aliceKeyPair := kr .Alice ().(* ed25519.Keypair )
@@ -1108,6 +1156,8 @@ func TestGetGrandpaGHOST_MultipleCandidates(t *testing.T) {
1108
1156
}
1109
1157
1110
1158
func TestGrandpaServiceCreateJustification_ShouldCountEquivocatoryVotes (t * testing.T ) {
1159
+ t .Parallel ()
1160
+
1111
1161
kr , err := keystore .NewEd25519Keyring ()
1112
1162
require .NoError (t , err )
1113
1163
aliceKeyPair := kr .Alice ().(* ed25519.Keypair )
0 commit comments