Skip to content

Commit

Permalink
use ignore tag to ignore tests in go mod tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Sep 24, 2024
1 parent f95066d commit e96a13e
Show file tree
Hide file tree
Showing 25 changed files with 55 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions x/crosschain/types/authz_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build ignore

package types_test

import (
Expand Down
2 changes: 2 additions & 0 deletions x/crosschain/types/cctx_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build ignore

package types_test

import (
Expand Down
7 changes: 5 additions & 2 deletions x/crosschain/types/cmd_cctxs_test.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
//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"
"github.com/zeta-chain/node/pkg/constant"
"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) {
Expand Down
2 changes: 2 additions & 0 deletions x/crosschain/types/genesis_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build ignore

package types_test

import (
Expand Down
2 changes: 2 additions & 0 deletions x/crosschain/types/inbound_params_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build ignore

package types_test

import (
Expand Down
2 changes: 2 additions & 0 deletions x/crosschain/types/message_abort_stuck_cctx_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build ignore

package types_test

import (
Expand Down
2 changes: 2 additions & 0 deletions x/crosschain/types/message_add_inbound_tracker_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build ignore

package types_test

import (
Expand Down
2 changes: 2 additions & 0 deletions x/crosschain/types/message_add_outbound_tracker_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build ignore

package types_test

import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build ignore

package types_test

import (
Expand Down
2 changes: 2 additions & 0 deletions x/crosschain/types/message_migrate_tss_funds_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build ignore

package types_test

import (
Expand Down
2 changes: 2 additions & 0 deletions x/crosschain/types/message_refund_aborted_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build ignore

package types_test

import (
Expand Down
2 changes: 2 additions & 0 deletions x/crosschain/types/message_remove_outbound_tracker_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build ignore

package types_test

import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build ignore

package types_test

import (
Expand Down
2 changes: 2 additions & 0 deletions x/crosschain/types/message_update_rate_limiter_flags_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build ignore

package types_test

import (
Expand Down
2 changes: 2 additions & 0 deletions x/crosschain/types/message_update_tss_address_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build ignore

package types_test

import (
Expand Down
2 changes: 2 additions & 0 deletions x/crosschain/types/message_vote_gas_price_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build ignore

package types_test

import (
Expand Down
7 changes: 5 additions & 2 deletions x/crosschain/types/message_vote_inbound_test.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 2 additions & 0 deletions x/crosschain/types/message_vote_outbound_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build ignore

package types_test

import (
Expand Down
2 changes: 2 additions & 0 deletions x/crosschain/types/message_whitelist_erc20_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build ignore

package types_test

import (
Expand Down
2 changes: 2 additions & 0 deletions x/crosschain/types/outbound_params_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build ignore

package types_test

import (
Expand Down
2 changes: 2 additions & 0 deletions x/crosschain/types/rate_limiter_flags_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build ignore

package types_test

import (
Expand Down
2 changes: 2 additions & 0 deletions x/crosschain/types/status_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build ignore

package types_test

import (
Expand Down
2 changes: 2 additions & 0 deletions x/crosschain/types/tx_body_verification_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build ignore

package types_test

import (
Expand Down
2 changes: 2 additions & 0 deletions x/crosschain/types/validate_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build ignore

package types_test

import (
Expand Down

0 comments on commit e96a13e

Please sign in to comment.