From c26ef79ed0a2ba14e8566e3b1cec7cc97d0d68ce Mon Sep 17 00:00:00 2001 From: Alessio Treglia Date: Mon, 14 Sep 2020 03:21:29 +0100 Subject: [PATCH] move client/testutil -> x/auth/testutil (#7292) We should never break the top-level-packages-do-not-depend-on-x-packages rule. --- {client => x/auth}/testutil/suite.go | 0 x/auth/tx/config_test.go | 2 +- x/auth/types/client_tx_test.go | 9 +++------ 3 files changed, 4 insertions(+), 7 deletions(-) rename {client => x/auth}/testutil/suite.go (100%) diff --git a/client/testutil/suite.go b/x/auth/testutil/suite.go similarity index 100% rename from client/testutil/suite.go rename to x/auth/testutil/suite.go diff --git a/x/auth/tx/config_test.go b/x/auth/tx/config_test.go index e3d9d5d2be..b1a4da69ec 100644 --- a/x/auth/tx/config_test.go +++ b/x/auth/tx/config_test.go @@ -9,10 +9,10 @@ import ( "github.com/stretchr/testify/suite" - "github.com/cosmos/cosmos-sdk/client/testutil" "github.com/cosmos/cosmos-sdk/codec" codectypes "github.com/cosmos/cosmos-sdk/codec/types" "github.com/cosmos/cosmos-sdk/std" + "github.com/cosmos/cosmos-sdk/x/auth/testutil" ) func TestGenerator(t *testing.T) { diff --git a/x/auth/types/client_tx_test.go b/x/auth/types/client_tx_test.go index 7d531bc243..2acdf0f97f 100644 --- a/x/auth/types/client_tx_test.go +++ b/x/auth/types/client_tx_test.go @@ -3,16 +3,13 @@ package types_test import ( "testing" - cryptoAmino "github.com/cosmos/cosmos-sdk/crypto/codec" - - "github.com/cosmos/cosmos-sdk/testutil/testdata" - - "github.com/cosmos/cosmos-sdk/client/testutil" - "github.com/stretchr/testify/suite" "github.com/cosmos/cosmos-sdk/codec" + cryptoAmino "github.com/cosmos/cosmos-sdk/crypto/codec" + "github.com/cosmos/cosmos-sdk/testutil/testdata" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/x/auth/testutil" "github.com/cosmos/cosmos-sdk/x/auth/types" )