Skip to content

Commit

Permalink
reorder unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba committed Dec 14, 2020
1 parent 8e55e13 commit a263570
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions client/tx/tx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ func TestSign(t *testing.T) {
txfAmino, txb, "unknown", true, nil, nil},
{"should succeed with keyring Amino",
txfAmino, txbSimple, from1, true, []cryptotypes.PubKey{pubKey1}, nil},
{"should succeed with keyring DIRECT",
txfDirect, txbSimple, from1, true, []cryptotypes.PubKey{pubKey1}, nil},

/**** test double sign AMINO ****/
{"should sign tx2 Amino",
Expand All @@ -197,10 +199,6 @@ func TestSign(t *testing.T) {
txfDirect, txb, from1, false, []cryptotypes.PubKey{}, nil},
{"should fail to overwrite tx2 DIRECT",
txfDirect, txb, from1, true, []cryptotypes.PubKey{}, nil},

/**** test simple DIRECT ****/
{"should succeed with keyring DIRECT",
txfDirect, txbSimple, from1, true, []cryptotypes.PubKey{pubKey1}, nil},
}
var prevSigs []signingtypes.SignatureV2
for _, tc := range testCases {
Expand Down

0 comments on commit a263570

Please sign in to comment.