1
- //go:build ! system_test
1
+ //go:build system_test
2
2
3
3
package systemtests
4
4
@@ -27,7 +27,11 @@ import (
27
27
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
28
28
)
29
29
30
- var bankMsgSendEventAction = "message.action='/cosmos.bank.v1beta1.MsgSend'"
30
+ var (
31
+ bankMsgSendEventAction = "message.action='/cosmos.bank.v1beta1.MsgSend'"
32
+ denom = "stake"
33
+ transferAmount int64 = 1000
34
+ )
31
35
32
36
func TestQueryBySig (t * testing.T ) {
33
37
sut .ResetChain (t )
@@ -39,8 +43,6 @@ func TestQueryBySig(t *testing.T) {
39
43
40
44
// add new key
41
45
receiverAddr := cli .AddKey ("account1" )
42
- denom := "stake"
43
- var transferAmount int64 = 1000
44
46
45
47
sut .StartChain (t )
46
48
@@ -80,8 +82,6 @@ func TestSimulateTx_GRPC(t *testing.T) {
80
82
81
83
// add new key
82
84
receiverAddr := cli .AddKey ("account1" )
83
- denom := "stake"
84
- var transferAmount int64 = 1000
85
85
86
86
sut .StartChain (t )
87
87
@@ -144,8 +144,6 @@ func TestSimulateTx_GRPCGateway(t *testing.T) {
144
144
145
145
// add new key
146
146
receiverAddr := cli .AddKey ("account1" )
147
- denom := "stake"
148
- var transferAmount int64 = 1000
149
147
150
148
sut .StartChain (t )
151
149
@@ -208,8 +206,6 @@ func TestGetTxEvents_GRPC(t *testing.T) {
208
206
209
207
// add new key
210
208
receiverAddr := cli .AddKey ("account1" )
211
- denom := "stake"
212
- var transferAmount int64 = 1000
213
209
214
210
sut .StartChain (t )
215
211
@@ -326,8 +322,6 @@ func TestGetTxEvents_GRPCGateway(t *testing.T) {
326
322
327
323
// add new key
328
324
receiverAddr := cli .AddKey ("account1" )
329
- denom := "stake"
330
- var transferAmount int64 = 1000
331
325
332
326
sut .StartChain (t )
333
327
@@ -424,8 +418,6 @@ func TestGetTx_GRPC(t *testing.T) {
424
418
425
419
// add new key
426
420
receiverAddr := cli .AddKey ("account1" )
427
- denom := "stake"
428
- var transferAmount int64 = 1000
429
421
430
422
sut .StartChain (t )
431
423
@@ -473,8 +465,6 @@ func TestGetTx_GRPCGateway(t *testing.T) {
473
465
474
466
// add new key
475
467
receiverAddr := cli .AddKey ("account1" )
476
- denom := "stake"
477
- var transferAmount int64 = 1000
478
468
479
469
sut .StartChain (t )
480
470
@@ -538,8 +528,6 @@ func TestGetBlockWithTxs_GRPC(t *testing.T) {
538
528
539
529
// add new key
540
530
receiverAddr := cli .AddKey ("account1" )
541
- denom := "stake"
542
- var transferAmount int64 = 1000
543
531
544
532
sut .StartChain (t )
545
533
@@ -598,8 +586,6 @@ func TestGetBlockWithTxs_GRPCGateway(t *testing.T) {
598
586
599
587
// add new key
600
588
receiverAddr := cli .AddKey ("account1" )
601
- denom := "stake"
602
- var transferAmount int64 = 1000
603
589
604
590
sut .StartChain (t )
605
591
@@ -749,8 +735,6 @@ func TestTxDecode_GRPC(t *testing.T) {
749
735
750
736
// add new key
751
737
receiverAddr := cli .AddKey ("account1" )
752
- denom := "stake"
753
- var transferAmount int64 = 1000
754
738
755
739
sut .StartChain (t )
756
740
@@ -806,8 +790,6 @@ func TestTxDecode_GRPCGateway(t *testing.T) {
806
790
807
791
// add new key
808
792
receiverAddr := cli .AddKey ("account1" )
809
- denom := "stake"
810
- var transferAmount int64 = 1000
811
793
812
794
sut .StartChain (t )
813
795
@@ -1049,8 +1031,6 @@ func TestSimMultiSigTx(t *testing.T) {
1049
1031
// add new key
1050
1032
_ = cli .AddKey ("account1" )
1051
1033
_ = cli .AddKey ("account2" )
1052
- denom := "stake"
1053
- var transferAmount int64 = 1000
1054
1034
1055
1035
sut .StartChain (t )
1056
1036
0 commit comments