@@ -449,8 +449,6 @@ func TestAuthorModule_HasKey_Integration(t *testing.T) {
449
449
450
450
func TestAuthorModule_HasSessionKeys_Integration (t * testing.T ) {
451
451
t .Parallel ()
452
- integrationTestController := setupStateAndRuntime (t , t .TempDir (), useInstanceFromGenesis )
453
- auth := newAuthorModule (t , integrationTestController )
454
452
455
453
const granSeed = "0xf25586ceb64a043d887631fa08c2ed790ef7ae3c7f28de5172005f8b9469e529"
456
454
const granPubK = "0x6b802349d948444d41397da09ec597fbd8ae8fdd3dfa153b2bb2bddcf020457c"
@@ -474,17 +472,6 @@ func TestAuthorModule_HasSessionKeys_Integration(t *testing.T) {
474
472
},
475
473
}
476
474
477
- for _ , toInsert := range insertSessionKeys {
478
- for _ , keytype := range toInsert .ktype {
479
- err := auth .InsertKey (nil , & KeyInsertRequest {
480
- Type : keytype ,
481
- Seed : toInsert .seed ,
482
- PublicKey : toInsert .pubk ,
483
- }, nil )
484
- require .NoError (t , err )
485
- }
486
- }
487
-
488
475
testcases := map [string ]struct {
489
476
pubSessionKeys string
490
477
expect bool
@@ -527,6 +514,20 @@ func TestAuthorModule_HasSessionKeys_Integration(t *testing.T) {
527
514
tt := tt
528
515
t .Run (tname , func (t * testing.T ) {
529
516
t .Parallel ()
517
+
518
+ integrationTestController := setupStateAndRuntime (t , t .TempDir (), useInstanceFromGenesis )
519
+ auth := newAuthorModule (t , integrationTestController )
520
+ for _ , toInsert := range insertSessionKeys {
521
+ for _ , keytype := range toInsert .ktype {
522
+ err := auth .InsertKey (nil , & KeyInsertRequest {
523
+ Type : keytype ,
524
+ Seed : toInsert .seed ,
525
+ PublicKey : toInsert .pubk ,
526
+ }, nil )
527
+ require .NoError (t , err )
528
+ }
529
+ }
530
+
530
531
req := HasSessionKeyRequest {
531
532
PublicKeys : tt .pubSessionKeys ,
532
533
}
0 commit comments