Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/auth/ante: Migrate tests to use the new client.TxConfig #6661

Merged
merged 61 commits into from
Jul 20, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
038fcb0
WIP: using encoding config
amaury1093 Jul 8, 2020
ae855fc
Merge branch 'master' into am-6213-xauthante
amaury1093 Jul 9, 2020
3b05f06
Merge branch 'master' into am-6213-xauthante
amaury1093 Jul 9, 2020
5c7da7b
Make it compile, test fails
amaury1093 Jul 9, 2020
aa485fa
test should be okay
amaury1093 Jul 9, 2020
ba338a4
Make tests pass
amaury1093 Jul 9, 2020
30c4b6b
Add comments
amaury1093 Jul 9, 2020
c78c31d
Convert more tests
amaury1093 Jul 10, 2020
9c99fbe
Merge branch 'master' into am-6213-xauthante
amaury1093 Jul 10, 2020
f208c45
Make TestAnteHandlerSigErrors work
amaury1093 Jul 10, 2020
edc3be6
Make first 2 tests pass
amaury1093 Jul 10, 2020
f6d1265
TestAnteHandlerAccountNumbers
amaury1093 Jul 10, 2020
1f79c24
Merge branch 'master' into am-6213-xauthante
amaury1093 Jul 10, 2020
5dec3f8
Use table tests
amaury1093 Jul 10, 2020
7516b46
Remove print
amaury1093 Jul 10, 2020
0c53051
Merge branch 'master' into am-6213-xauthante
amaury1093 Jul 10, 2020
0e7e1e3
Use test table
amaury1093 Jul 13, 2020
0f8bbff
Merge branch 'master' into am-6213-xauthante
amaury1093 Jul 13, 2020
d6ebbfa
TestAnteHandlerSigErrors
amaury1093 Jul 13, 2020
8151c4b
TestAnteHandlerAccountNumbers
amaury1093 Jul 13, 2020
6ced722
TestAnteHandlerAccountNumbers
amaury1093 Jul 13, 2020
d3c942a
Refactor TestAccount
amaury1093 Jul 13, 2020
a68a7c7
Refactor getSignBytes
amaury1093 Jul 13, 2020
39e382e
TestAnteHandlerAccountNumbersAtBlockHeightZero
amaury1093 Jul 13, 2020
03fc35d
TestAnteHandlerSequences
amaury1093 Jul 13, 2020
af9e5a3
TestAnteHandlerFees
amaury1093 Jul 13, 2020
0196749
TestAnteHandlerMultiSigner
amaury1093 Jul 13, 2020
5a27cc2
TestAnteHandlerBadSignBytes
amaury1093 Jul 13, 2020
5ff8cdf
TestAnteHandlerSetPubKey
amaury1093 Jul 13, 2020
327a4f7
TestAnteHandlerSigLimitExceeded
amaury1093 Jul 13, 2020
94b6297
TestCustomSignatureVerificationGasConsumer
amaury1093 Jul 13, 2020
ca42457
TestAnteHandlerReCheck
amaury1093 Jul 13, 2020
b00c3a1
Make all tests pass
amaury1093 Jul 13, 2020
7df4794
Merge branch 'master' into am-6213-xauthante
amaury1093 Jul 13, 2020
9dd9846
Refactor a little bit more
amaury1093 Jul 14, 2020
a47d1f3
Fee test
amaury1093 Jul 14, 2020
349742e
SetupTest
amaury1093 Jul 14, 2020
1fd5029
All tests pass
amaury1093 Jul 14, 2020
b958b00
Refactor to RunTestCase
amaury1093 Jul 14, 2020
880c803
Merge branch 'master' into am-6213-xauthante
amaury1093 Jul 14, 2020
39669ae
Merge branch 'master' into am-6213-xauthante
amaury1093 Jul 15, 2020
75f47ed
Don't use StdFee
amaury1093 Jul 15, 2020
4d08eca
Merge branch 'master' into am-6213-xauthante
amaury1093 Jul 15, 2020
f4f79dd
Revert some little stuff
amaury1093 Jul 15, 2020
2f2f333
Finish up last couple of test cases
amaury1093 Jul 15, 2020
d4b4665
Merge branch 'master' into am-6213-xauthante
alexanderbez Jul 15, 2020
1b85d33
Merge branch 'master' into am-6213-xauthante
amaury1093 Jul 16, 2020
ca228a3
Merge branch 'master' into am-6213-xauthante
amaury1093 Jul 16, 2020
8349420
Less verbose
amaury1093 Jul 16, 2020
db52a3e
s/TxGenerator/TxConfig
amaury1093 Jul 16, 2020
7839b6c
Add comments
amaury1093 Jul 16, 2020
02cd879
Indent
amaury1093 Jul 16, 2020
1bea3ff
Move KeyTestPubAddr to testdata
amaury1093 Jul 16, 2020
887cab8
Move testdata to /testutil
amaury1093 Jul 16, 2020
9094a39
Merge branch 'master' into am-6213-xauthante
amaury1093 Jul 17, 2020
b7ffcba
Merge branch 'master' into am-6213-xauthante
amaury1093 Jul 17, 2020
a8c574e
Revert to use signature: nil step in signing
amaury1093 Jul 17, 2020
091ea35
Add comments
amaury1093 Jul 17, 2020
fffb443
Merge branch 'master' into am-6213-xauthante
amaury1093 Jul 17, 2020
d90bf35
Merge branch 'master' into am-6213-xauthante
amaury1093 Jul 20, 2020
87e7bca
Merge branch 'master' into am-6213-xauthante
amaury1093 Jul 20, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Move KeyTestPubAddr to testdata
  • Loading branch information
amaury1093 committed Jul 16, 2020
commit 1bea3ff4f2e4788945935515403f46a50702b946
11 changes: 5 additions & 6 deletions client/testutil/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/cosmos/cosmos-sdk/codec/testdata"
"github.com/cosmos/cosmos-sdk/crypto/types/multisig"
"github.com/cosmos/cosmos-sdk/x/auth/signing"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
"github.com/stretchr/testify/suite"
"github.com/tendermint/tendermint/crypto"

Expand Down Expand Up @@ -63,8 +62,8 @@ func (s *TxConfigTestSuite) TestTxBuilderSetMemo() {
}

func (s *TxConfigTestSuite) TestTxBuilderSetMsgs() {
_, _, addr1 := authtypes.KeyTestPubAddr()
_, _, addr2 := authtypes.KeyTestPubAddr()
_, _, addr1 := testdata.KeyTestPubAddr()
_, _, addr2 := testdata.KeyTestPubAddr()
msg1 := testdata.NewTestMsg(addr1)
msg2 := testdata.NewTestMsg(addr2)
msgs := []sdk.Msg{msg1, msg2}
Expand All @@ -81,8 +80,8 @@ func (s *TxConfigTestSuite) TestTxBuilderSetMsgs() {
}

func (s *TxConfigTestSuite) TestTxBuilderSetSignatures() {
privKey, pubkey, addr := authtypes.KeyTestPubAddr()
privKey2, pubkey2, _ := authtypes.KeyTestPubAddr()
privKey, pubkey, addr := testdata.KeyTestPubAddr()
privKey2, pubkey2, _ := testdata.KeyTestPubAddr()
multisigPk := multisig.NewPubKeyMultisigThreshold(2, []crypto.PubKey{pubkey, pubkey2})

txBuilder := s.TxConfig.NewTxBuilder()
Expand Down Expand Up @@ -228,7 +227,7 @@ func sigDataEquals(data1, data2 signingtypes.SignatureData) bool {
}

func (s *TxConfigTestSuite) TestTxEncodeDecode() {
_, pubkey, addr := authtypes.KeyTestPubAddr()
_, pubkey, addr := testdata.KeyTestPubAddr()
feeAmount := sdk.Coins{sdk.NewInt64Coin("atom", 150)}
gasLimit := uint64(50000)
memo := "foomemo"
Expand Down
10 changes: 10 additions & 0 deletions codec/testdata/test_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,18 @@ import (
"encoding/json"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/tendermint/tendermint/crypto"
"github.com/tendermint/tendermint/crypto/secp256k1"
)

// KeyTestPubAddr generates a new secp256k1 keypair.
func KeyTestPubAddr() (crypto.PrivKey, crypto.PubKey, sdk.AccAddress) {
key := secp256k1.GenPrivKey()
pub := key.PubKey()
addr := sdk.AccAddress(pub.Address())
return key, pub, addr
}

// NewTestFeeAmount is a test fee amount.
func NewTestFeeAmount() sdk.Coins {
return sdk.NewCoins(sdk.NewInt64Coin("atom", 150))
Expand Down
8 changes: 4 additions & 4 deletions x/auth/ante/ante_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ func (suite *AnteTestSuite) TestAnteHandlerSigErrors() {
suite.SetupTest(true) // reset

// Same data for every test cases
priv0, _, addr0 := types.KeyTestPubAddr()
priv1, _, addr1 := types.KeyTestPubAddr()
priv2, _, addr2 := types.KeyTestPubAddr()
priv0, _, addr0 := testdata.KeyTestPubAddr()
priv1, _, addr1 := testdata.KeyTestPubAddr()
priv2, _, addr2 := testdata.KeyTestPubAddr()
msgs := []sdk.Msg{
testdata.NewTestMsg(addr0, addr1),
testdata.NewTestMsg(addr0, addr2),
Expand Down Expand Up @@ -438,7 +438,7 @@ func (suite *AnteTestSuite) TestAnteHandlerFees() {
suite.SetupTest(true) // setup

// Same data for every test cases
priv0, _, addr0 := types.KeyTestPubAddr()
priv0, _, addr0 := testdata.KeyTestPubAddr()

acc1 := suite.app.AccountKeeper.NewAccountWithAddress(suite.ctx, addr0)
suite.app.AccountKeeper.SetAccount(suite.ctx, acc1)
Expand Down
6 changes: 3 additions & 3 deletions x/auth/ante/basic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func (suite *AnteTestSuite) TestValidateBasic() {
suite.txBuilder = suite.clientCtx.TxConfig.NewTxBuilder()

// keys and addresses
priv1, _, addr1 := types.KeyTestPubAddr()
priv1, _, addr1 := testdata.KeyTestPubAddr()

// msg and signatures
msg := testdata.NewTestMsg(addr1)
Expand Down Expand Up @@ -59,7 +59,7 @@ func (suite *AnteTestSuite) TestValidateMemo() {
suite.txBuilder = suite.clientCtx.TxConfig.NewTxBuilder()

// keys and addresses
priv1, _, addr1 := types.KeyTestPubAddr()
priv1, _, addr1 := testdata.KeyTestPubAddr()

// msg and signatures
msg := testdata.NewTestMsg(addr1)
Expand Down Expand Up @@ -93,7 +93,7 @@ func (suite *AnteTestSuite) TestConsumeGasForTxSize() {
suite.txBuilder = suite.clientCtx.TxConfig.NewTxBuilder()

// keys and addresses
priv1, _, addr1 := types.KeyTestPubAddr()
priv1, _, addr1 := testdata.KeyTestPubAddr()

// msg and signatures
msg := testdata.NewTestMsg(addr1)
Expand Down
5 changes: 2 additions & 3 deletions x/auth/ante/fee_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/auth/ante"
"github.com/cosmos/cosmos-sdk/x/auth/types"
)

func (suite *AnteTestSuite) TestEnsureMempoolFees() {
Expand All @@ -21,7 +20,7 @@ func (suite *AnteTestSuite) TestEnsureMempoolFees() {
antehandler := sdk.ChainAnteDecorators(mfd)

// keys and addresses
priv1, _, addr1 := types.KeyTestPubAddr()
priv1, _, addr1 := testdata.KeyTestPubAddr()

// msg and signatures
msg := testdata.NewTestMsg(addr1)
Expand Down Expand Up @@ -69,7 +68,7 @@ func (suite *AnteTestSuite) TestDeductFees() {
suite.txBuilder = suite.clientCtx.TxConfig.NewTxBuilder()

// keys and addresses
priv1, _, addr1 := types.KeyTestPubAddr()
priv1, _, addr1 := testdata.KeyTestPubAddr()

// msg and signatures
msg := testdata.NewTestMsg(addr1)
Expand Down
5 changes: 2 additions & 3 deletions x/auth/ante/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/cosmos/cosmos-sdk/x/auth/ante"
"github.com/cosmos/cosmos-sdk/x/auth/types"
)

func (suite *AnteTestSuite) TestSetup() {
suite.SetupTest(true) // setup
suite.txBuilder = suite.clientCtx.TxConfig.NewTxBuilder()

// keys and addresses
priv1, _, addr1 := types.KeyTestPubAddr()
priv1, _, addr1 := testdata.KeyTestPubAddr()

// msg and signatures
msg := testdata.NewTestMsg(addr1)
Expand Down Expand Up @@ -53,7 +52,7 @@ func (suite *AnteTestSuite) TestRecoverPanic() {
suite.txBuilder = suite.clientCtx.TxConfig.NewTxBuilder()

// keys and addresses
priv1, _, addr1 := types.KeyTestPubAddr()
priv1, _, addr1 := testdata.KeyTestPubAddr()

// msg and signatures
msg := testdata.NewTestMsg(addr1)
Expand Down
14 changes: 7 additions & 7 deletions x/auth/ante/sigverify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ func (suite *AnteTestSuite) TestSetPubKey() {
suite.txBuilder = suite.clientCtx.TxConfig.NewTxBuilder()

// keys and addresses
priv1, pub1, addr1 := types.KeyTestPubAddr()
priv2, pub2, addr2 := types.KeyTestPubAddr()
priv3, pub3, addr3 := types.KeyTestPubAddr()
priv1, pub1, addr1 := testdata.KeyTestPubAddr()
priv2, pub2, addr2 := testdata.KeyTestPubAddr()
priv3, pub3, addr3 := testdata.KeyTestPubAddr()

addrs := []sdk.AccAddress{addr1, addr2, addr3}
pubs := []crypto.PubKey{pub1, pub2, pub3}
Expand Down Expand Up @@ -123,9 +123,9 @@ func (suite *AnteTestSuite) TestSigVerification() {
suite.ctx = suite.ctx.WithBlockHeight(1)

// keys and addresses
priv1, _, addr1 := types.KeyTestPubAddr()
priv2, _, addr2 := types.KeyTestPubAddr()
priv3, _, addr3 := types.KeyTestPubAddr()
priv1, _, addr1 := testdata.KeyTestPubAddr()
priv2, _, addr2 := testdata.KeyTestPubAddr()
priv3, _, addr3 := testdata.KeyTestPubAddr()

addrs := []sdk.AccAddress{addr1, addr2, addr3}

Expand Down Expand Up @@ -244,7 +244,7 @@ func (suite *AnteTestSuite) TestIncrementSequenceDecorator() {
suite.SetupTest(true) // setup
suite.txBuilder = suite.clientCtx.TxConfig.NewTxBuilder()

priv, _, addr := types.KeyTestPubAddr()
priv, _, addr := testdata.KeyTestPubAddr()
acc := suite.app.AccountKeeper.NewAccountWithAddress(suite.ctx, addr)
suite.Require().NoError(acc.SetAccountNumber(uint64(50)))
suite.app.AccountKeeper.SetAccount(suite.ctx, acc)
Expand Down
3 changes: 2 additions & 1 deletion x/auth/ante/testutil_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (

"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/tx"
"github.com/cosmos/cosmos-sdk/codec/testdata"
"github.com/cosmos/cosmos-sdk/simapp"
simappparams "github.com/cosmos/cosmos-sdk/simapp/params"
sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down Expand Up @@ -53,7 +54,7 @@ func (suite *AnteTestSuite) CreateTestAccounts(numAccs int) []TestAccount {
var accounts []TestAccount

for i := 0; i < numAccs; i++ {
priv, _, addr := types.KeyTestPubAddr()
priv, _, addr := testdata.KeyTestPubAddr()
acc := suite.app.AccountKeeper.NewAccountWithAddress(suite.ctx, addr)
err := acc.SetAccountNumber(uint64(i))
suite.Require().NoError(err)
Expand Down
3 changes: 2 additions & 1 deletion x/auth/keeper/grpc_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package keeper_test
import (
"fmt"

"github.com/cosmos/cosmos-sdk/codec/testdata"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/auth/types"
)
Expand All @@ -11,7 +12,7 @@ func (suite *KeeperTestSuite) TestGRPCQueryAccount() {
var (
req *types.QueryAccountRequest
)
_, _, addr := types.KeyTestPubAddr()
_, _, addr := testdata.KeyTestPubAddr()

testCases := []struct {
msg string
Expand Down
3 changes: 2 additions & 1 deletion x/auth/keeper/querier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (

abci "github.com/tendermint/tendermint/abci/types"

"github.com/cosmos/cosmos-sdk/codec/testdata"
keep "github.com/cosmos/cosmos-sdk/x/auth/keeper"
"github.com/cosmos/cosmos-sdk/x/auth/types"
)
Expand Down Expand Up @@ -41,7 +42,7 @@ func TestQueryAccount(t *testing.T) {
require.Error(t, err)
require.Nil(t, res)

_, _, addr := types.KeyTestPubAddr()
_, _, addr := testdata.KeyTestPubAddr()
req.Data = cdc.MustMarshalJSON(types.NewQueryAccountRequest(addr))
res, err = querier(ctx, path, req)
require.Error(t, err)
Expand Down
3 changes: 1 addition & 2 deletions x/auth/signing/direct/direct_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
txtypes "github.com/cosmos/cosmos-sdk/types/tx"
"github.com/cosmos/cosmos-sdk/x/auth/signing"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
)

func TestDirectModeHandler(t *testing.T) {
privKey, pubkey, addr := authtypes.KeyTestPubAddr()
privKey, pubkey, addr := testdata.KeyTestPubAddr()
interfaceRegistry := codectypes.NewInterfaceRegistry()
interfaceRegistry.RegisterImplementations((*sdk.Msg)(nil), &testdata.TestMsg{})
marshaler := codec.NewProtoCodec(interfaceRegistry)
Expand Down
4 changes: 2 additions & 2 deletions x/auth/signing/verify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
)

func TestVerifySignature(t *testing.T) {
priv, pubKey, addr := types.KeyTestPubAddr()
priv1, pubKey1, addr1 := types.KeyTestPubAddr()
priv, pubKey, addr := testdata.KeyTestPubAddr()
priv1, pubKey1, addr1 := testdata.KeyTestPubAddr()

const (
memo = "testmemo"
Expand Down
8 changes: 3 additions & 5 deletions x/auth/tx/builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@ import (

"github.com/stretchr/testify/require"

authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"

"github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/std"
sdk "github.com/cosmos/cosmos-sdk/types"
)

func TestTxBuilder(t *testing.T) {
_, pubkey, addr := authtypes.KeyTestPubAddr()
_, pubkey, addr := testdata.KeyTestPubAddr()

marshaler := codec.NewHybridCodec(codec.New(), codectypes.NewInterfaceRegistry())
tx := newBuilder(marshaler, std.DefaultPublicKeyCodec{})
Expand Down Expand Up @@ -116,8 +114,8 @@ func TestTxBuilder(t *testing.T) {

func TestBuilderValidateBasic(t *testing.T) {
// keys and addresses
_, pubKey1, addr1 := authtypes.KeyTestPubAddr()
_, pubKey2, addr2 := authtypes.KeyTestPubAddr()
_, pubKey1, addr1 := testdata.KeyTestPubAddr()
_, pubKey2, addr2 := testdata.KeyTestPubAddr()

// msg and signatures
msg1 := testdata.NewTestMsg(addr1, addr2)
Expand Down
9 changes: 5 additions & 4 deletions x/auth/types/account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ import (
"github.com/tendermint/tendermint/crypto/secp256k1"
yaml "gopkg.in/yaml.v2"

"github.com/cosmos/cosmos-sdk/codec/testdata"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/auth/types"
)

func TestBaseAddressPubKey(t *testing.T) {
_, pub1, addr1 := types.KeyTestPubAddr()
_, pub2, addr2 := types.KeyTestPubAddr()
_, pub1, addr1 := testdata.KeyTestPubAddr()
_, pub2, addr2 := testdata.KeyTestPubAddr()
acc := types.NewBaseAccountWithAddress(addr1)

// check the address (set) and pubkey (not set)
Expand Down Expand Up @@ -48,7 +49,7 @@ func TestBaseAddressPubKey(t *testing.T) {
}

func TestBaseAccountSequence(t *testing.T) {
_, _, addr := types.KeyTestPubAddr()
_, _, addr := testdata.KeyTestPubAddr()
acc := types.NewBaseAccountWithAddress(addr)
seq := uint64(7)

Expand All @@ -58,7 +59,7 @@ func TestBaseAccountSequence(t *testing.T) {
}

func TestBaseAccountMarshal(t *testing.T) {
_, pub, addr := types.KeyTestPubAddr()
_, pub, addr := testdata.KeyTestPubAddr()
acc := types.NewBaseAccountWithAddress(addr)
seq := uint64(7)

Expand Down
12 changes: 6 additions & 6 deletions x/auth/types/stdtx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ func TestTxValidateBasic(t *testing.T) {
ctx := sdk.NewContext(nil, abci.Header{ChainID: "mychainid"}, false, log.NewNopLogger())

// keys and addresses
priv1, _, addr1 := KeyTestPubAddr()
priv2, _, addr2 := KeyTestPubAddr()
priv1, _, addr1 := testdata.KeyTestPubAddr()
priv2, _, addr2 := testdata.KeyTestPubAddr()

// msg and signatures
msg1 := testdata.NewTestMsg(addr1, addr2)
Expand Down Expand Up @@ -173,7 +173,7 @@ func TestDefaultTxEncoder(t *testing.T) {
}

func TestStdSignatureMarshalYAML(t *testing.T) {
_, pubKey, _ := KeyTestPubAddr()
_, pubKey, _ := testdata.KeyTestPubAddr()

testCases := []struct {
sig StdSignature
Expand Down Expand Up @@ -201,7 +201,7 @@ func TestStdSignatureMarshalYAML(t *testing.T) {
}

func TestSignatureV2Conversions(t *testing.T) {
_, pubKey, _ := KeyTestPubAddr()
_, pubKey, _ := testdata.KeyTestPubAddr()
cdc := codec.New()
sdk.RegisterCodec(cdc)
RegisterCodec(cdc)
Expand All @@ -221,7 +221,7 @@ func TestSignatureV2Conversions(t *testing.T) {
require.Equal(t, dummy, sigBz)

// multisigs
_, pubKey2, _ := KeyTestPubAddr()
_, pubKey2, _ := testdata.KeyTestPubAddr()
multiPK := multisig.NewPubKeyMultisigThreshold(1, []crypto.PubKey{
pubKey, pubKey2,
})
Expand Down Expand Up @@ -256,7 +256,7 @@ func TestSignatureV2Conversions(t *testing.T) {
}

func TestGetSignaturesV2(t *testing.T) {
_, pubKey, _ := KeyTestPubAddr()
_, pubKey, _ := testdata.KeyTestPubAddr()
dummy := []byte("dummySig")

cdc := codec.New()
Expand Down
16 changes: 0 additions & 16 deletions x/auth/types/test_utils.go

This file was deleted.

Loading