Skip to content

Commit

Permalink
Make test cases run in order
Browse files Browse the repository at this point in the history
  • Loading branch information
0xdev22 committed Jan 19, 2024
1 parent aef4087 commit 15fe7cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion connector/web3/web3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,10 @@ func TestBlockchainBackend(t *testing.T) {
},
}

for name, testCase := range testCases {
testList := []string{"invalid_signer_error", "success_valid_signer", "no_eth_client_found"}
for _, name := range testList {
testCase := testCases[name]

t.Run(name, func(t *testing.T) {
tc := testCase()
res, err := conn.VerifyERC1271Signature(tc.address, tc.msgHash, tc.signedMessage)
Expand Down

0 comments on commit 15fe7cb

Please sign in to comment.