diff --git a/Makefile b/Makefile index b3fbf4009a..d39455df9c 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,7 @@ ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=zetacore \ BUILD_FLAGS := -ldflags '$(ldflags)' -tags pebbledb,ledger TEST_DIR ?= "./..." -TEST_BUILD_FLAGS := -tags pebbledb,ledger +TEST_BUILD_FLAGS := -tags pebbledb,ledger,ignore HSM_BUILD_FLAGS := -tags pebbledb,ledger,hsm_test export DOCKER_BUILDKIT := 1 diff --git a/x/crosschain/types/authz_test.go b/x/crosschain/types/authz_test.go index 2238ff8842..48cf0bf8a0 100644 --- a/x/crosschain/types/authz_test.go +++ b/x/crosschain/types/authz_test.go @@ -1,3 +1,5 @@ +//go:build ignore + package types_test import ( diff --git a/x/crosschain/types/cctx_test.go b/x/crosschain/types/cctx_test.go index 6317161196..6e54b87926 100644 --- a/x/crosschain/types/cctx_test.go +++ b/x/crosschain/types/cctx_test.go @@ -1,3 +1,5 @@ +//go:build ignore + package types_test import ( diff --git a/x/crosschain/types/cmd_cctxs_test.go b/x/crosschain/types/cmd_cctxs_test.go index 1712989000..3c9502a2f9 100644 --- a/x/crosschain/types/cmd_cctxs_test.go +++ b/x/crosschain/types/cmd_cctxs_test.go @@ -1,8 +1,12 @@ +//go:build ignore + package types_test import ( - sdkmath "cosmossdk.io/math" "fmt" + "testing" + + sdkmath "cosmossdk.io/math" "github.com/stretchr/testify/require" "github.com/zeta-chain/node/pkg/chains" "github.com/zeta-chain/node/pkg/coin" @@ -10,7 +14,6 @@ import ( "github.com/zeta-chain/node/pkg/gas" "github.com/zeta-chain/node/testutil/sample" "github.com/zeta-chain/node/x/crosschain/types" - "testing" ) func TestMigrateERC20CustodyFundsCmdCCTX(t *testing.T) { diff --git a/x/crosschain/types/genesis_test.go b/x/crosschain/types/genesis_test.go index 7b1a151e5e..9cd65088c8 100644 --- a/x/crosschain/types/genesis_test.go +++ b/x/crosschain/types/genesis_test.go @@ -1,3 +1,5 @@ +//go:build ignore + package types_test import ( diff --git a/x/crosschain/types/inbound_params_test.go b/x/crosschain/types/inbound_params_test.go index dee5dbdc5e..058f301a30 100644 --- a/x/crosschain/types/inbound_params_test.go +++ b/x/crosschain/types/inbound_params_test.go @@ -1,3 +1,5 @@ +//go:build ignore + package types_test import ( diff --git a/x/crosschain/types/message_abort_stuck_cctx_test.go b/x/crosschain/types/message_abort_stuck_cctx_test.go index 0ecd052b8c..6911bfc218 100644 --- a/x/crosschain/types/message_abort_stuck_cctx_test.go +++ b/x/crosschain/types/message_abort_stuck_cctx_test.go @@ -1,3 +1,5 @@ +//go:build ignore + package types_test import ( diff --git a/x/crosschain/types/message_add_inbound_tracker_test.go b/x/crosschain/types/message_add_inbound_tracker_test.go index 0b35959109..adc8edf83f 100644 --- a/x/crosschain/types/message_add_inbound_tracker_test.go +++ b/x/crosschain/types/message_add_inbound_tracker_test.go @@ -1,3 +1,5 @@ +//go:build ignore + package types_test import ( diff --git a/x/crosschain/types/message_add_outbound_tracker_test.go b/x/crosschain/types/message_add_outbound_tracker_test.go index 5eafc7b31c..a718c6bdbd 100644 --- a/x/crosschain/types/message_add_outbound_tracker_test.go +++ b/x/crosschain/types/message_add_outbound_tracker_test.go @@ -1,3 +1,5 @@ +//go:build ignore + package types_test import ( diff --git a/x/crosschain/types/message_migrate_erc20_custody_funds_test.go b/x/crosschain/types/message_migrate_erc20_custody_funds_test.go index ebcca7cde4..a512f5931a 100644 --- a/x/crosschain/types/message_migrate_erc20_custody_funds_test.go +++ b/x/crosschain/types/message_migrate_erc20_custody_funds_test.go @@ -1,3 +1,5 @@ +//go:build ignore + package types_test import ( diff --git a/x/crosschain/types/message_migrate_tss_funds_test.go b/x/crosschain/types/message_migrate_tss_funds_test.go index 5e1ead5913..dba3d0a568 100644 --- a/x/crosschain/types/message_migrate_tss_funds_test.go +++ b/x/crosschain/types/message_migrate_tss_funds_test.go @@ -1,3 +1,5 @@ +//go:build ignore + package types_test import ( diff --git a/x/crosschain/types/message_refund_aborted_test.go b/x/crosschain/types/message_refund_aborted_test.go index 7d819f1ee3..525f1eb0dc 100644 --- a/x/crosschain/types/message_refund_aborted_test.go +++ b/x/crosschain/types/message_refund_aborted_test.go @@ -1,3 +1,5 @@ +//go:build ignore + package types_test import ( diff --git a/x/crosschain/types/message_remove_outbound_tracker_test.go b/x/crosschain/types/message_remove_outbound_tracker_test.go index a6322f7732..9d94ae9dc3 100644 --- a/x/crosschain/types/message_remove_outbound_tracker_test.go +++ b/x/crosschain/types/message_remove_outbound_tracker_test.go @@ -1,3 +1,5 @@ +//go:build ignore + package types_test import ( diff --git a/x/crosschain/types/message_update_erc20_custody_pause_status_test.go b/x/crosschain/types/message_update_erc20_custody_pause_status_test.go index 251b422716..b647c4bf46 100644 --- a/x/crosschain/types/message_update_erc20_custody_pause_status_test.go +++ b/x/crosschain/types/message_update_erc20_custody_pause_status_test.go @@ -1,3 +1,5 @@ +//go:build ignore + package types_test import ( diff --git a/x/crosschain/types/message_update_rate_limiter_flags_test.go b/x/crosschain/types/message_update_rate_limiter_flags_test.go index e875770dec..19008ca701 100644 --- a/x/crosschain/types/message_update_rate_limiter_flags_test.go +++ b/x/crosschain/types/message_update_rate_limiter_flags_test.go @@ -1,3 +1,5 @@ +//go:build ignore + package types_test import ( diff --git a/x/crosschain/types/message_update_tss_address_test.go b/x/crosschain/types/message_update_tss_address_test.go index 27404e76fe..719defa697 100644 --- a/x/crosschain/types/message_update_tss_address_test.go +++ b/x/crosschain/types/message_update_tss_address_test.go @@ -1,3 +1,5 @@ +//go:build ignore + package types_test import ( diff --git a/x/crosschain/types/message_vote_gas_price_test.go b/x/crosschain/types/message_vote_gas_price_test.go index fbc9a18ec4..a66150118a 100644 --- a/x/crosschain/types/message_vote_gas_price_test.go +++ b/x/crosschain/types/message_vote_gas_price_test.go @@ -1,3 +1,5 @@ +//go:build ignore + package types_test import ( diff --git a/x/crosschain/types/message_vote_inbound_test.go b/x/crosschain/types/message_vote_inbound_test.go index c7fbcbb531..857ffee07a 100644 --- a/x/crosschain/types/message_vote_inbound_test.go +++ b/x/crosschain/types/message_vote_inbound_test.go @@ -1,12 +1,15 @@ +//go:build ignore + package types_test import ( - "github.com/zeta-chain/protocol-contracts/v2/pkg/gatewayevm.sol" - "github.com/zeta-chain/protocol-contracts/v2/pkg/gatewayzevm.sol" "math/big" "math/rand" "testing" + "github.com/zeta-chain/protocol-contracts/v2/pkg/gatewayevm.sol" + "github.com/zeta-chain/protocol-contracts/v2/pkg/gatewayzevm.sol" + "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" diff --git a/x/crosschain/types/message_vote_outbound_test.go b/x/crosschain/types/message_vote_outbound_test.go index e6cf411068..a23baeaeed 100644 --- a/x/crosschain/types/message_vote_outbound_test.go +++ b/x/crosschain/types/message_vote_outbound_test.go @@ -1,3 +1,5 @@ +//go:build ignore + package types_test import ( diff --git a/x/crosschain/types/message_whitelist_erc20_test.go b/x/crosschain/types/message_whitelist_erc20_test.go index 873ce72ea2..46635d7fc6 100644 --- a/x/crosschain/types/message_whitelist_erc20_test.go +++ b/x/crosschain/types/message_whitelist_erc20_test.go @@ -1,3 +1,5 @@ +//go:build ignore + package types_test import ( diff --git a/x/crosschain/types/outbound_params_test.go b/x/crosschain/types/outbound_params_test.go index 07c417433d..b532cae2a0 100644 --- a/x/crosschain/types/outbound_params_test.go +++ b/x/crosschain/types/outbound_params_test.go @@ -1,3 +1,5 @@ +//go:build ignore + package types_test import ( diff --git a/x/crosschain/types/rate_limiter_flags_test.go b/x/crosschain/types/rate_limiter_flags_test.go index 8531a34105..21a7dbd9f2 100644 --- a/x/crosschain/types/rate_limiter_flags_test.go +++ b/x/crosschain/types/rate_limiter_flags_test.go @@ -1,3 +1,5 @@ +//go:build ignore + package types_test import ( diff --git a/x/crosschain/types/status_test.go b/x/crosschain/types/status_test.go index 88013a41a9..8768d2da19 100644 --- a/x/crosschain/types/status_test.go +++ b/x/crosschain/types/status_test.go @@ -1,3 +1,5 @@ +//go:build ignore + package types_test import ( diff --git a/x/crosschain/types/tx_body_verification_test.go b/x/crosschain/types/tx_body_verification_test.go index 2cf93e2304..e6a72664bb 100644 --- a/x/crosschain/types/tx_body_verification_test.go +++ b/x/crosschain/types/tx_body_verification_test.go @@ -1,3 +1,5 @@ +//go:build ignore + package types_test import ( diff --git a/x/crosschain/types/validate_test.go b/x/crosschain/types/validate_test.go index d570df1d94..67936150dc 100644 --- a/x/crosschain/types/validate_test.go +++ b/x/crosschain/types/validate_test.go @@ -1,3 +1,5 @@ +//go:build ignore + package types_test import (