Skip to content

Commit

Permalink
Fix app based tests
Browse files Browse the repository at this point in the history
  • Loading branch information
avalkov committed Dec 16, 2024
1 parent c200868 commit 6a0cae3
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion tests/e2e/authz/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

func TestE2ETestSuite(t *testing.T) {
t.Skip("skipping test for HV2, see https://polygon.atlassian.net/browse/POS-2540")
t.Skip("In HV2 we dont use authz module")
cfg := network.DefaultConfig(simapp.NewTestNetworkFixture)
cfg.NumValidators = 1
suite.Run(t, NewE2ETestSuite(cfg))
Expand Down
6 changes: 3 additions & 3 deletions tests/e2e/distribution/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ import (
)

func TestE2ETestSuite(t *testing.T) {
t.Skip("skipping test for HV2, see https://polygon.atlassian.net/browse/POS-2540")
t.Skip("In HV2 we dont use distribution module")
suite.Run(t, new(E2ETestSuite))
}

func TestGRPCQueryTestSuite(t *testing.T) {
t.Skip("skipping test for HV2, see https://polygon.atlassian.net/browse/POS-2540")
t.Skip("In HV2 we dont use distribution module")
suite.Run(t, new(GRPCQueryTestSuite))
}

func TestWithdrawAllSuite(t *testing.T) {
t.Skip("skipping test for HV2, see https://polygon.atlassian.net/browse/POS-2540")
t.Skip("In HV2 we dont use distribution module")
suite.Run(t, new(WithdrawAllTestSuite))
}
2 changes: 1 addition & 1 deletion tests/e2e/staking/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
)

func TestE2ETestSuite(t *testing.T) {
t.Skip("skipping test for HV2, see https://polygon.atlassian.net/browse/POS-2540")
t.Skip("In HV2 we have own stake module")
cfg := network.DefaultConfig(simapp.NewTestNetworkFixture)
cfg.NumValidators = 2
suite.Run(t, NewE2ETestSuite(cfg))
Expand Down
6 changes: 3 additions & 3 deletions tests/integration/distribution/keeper/grpc_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func TestGRPCParams(t *testing.T) {
}

func TestGRPCValidatorOutstandingRewards(t *testing.T) {
t.Skip("skipping test for HV2, see https://polygon.atlassian.net/browse/POS-2540")
t.Skip("In HV2 we dont use distribution module")
t.Parallel()
f := initFixture(t)

Expand Down Expand Up @@ -151,7 +151,7 @@ func TestGRPCValidatorOutstandingRewards(t *testing.T) {
}

func TestGRPCValidatorCommission(t *testing.T) {
t.Skip("skipping test for HV2, see https://polygon.atlassian.net/browse/POS-2540")
t.Skip("In HV2 we dont use distribution module")
t.Parallel()
f := initFixture(t)

Expand Down Expand Up @@ -474,7 +474,7 @@ func TestGRPCCommunityPool(t *testing.T) {
}

func TestGRPCDelegationRewards(t *testing.T) {
t.Skip("skipping test for HV2, see https://polygon.atlassian.net/browse/POS-2540")
t.Skip("In HV2 we dont use distribution module")
t.Parallel()
f := initFixture(t)

Expand Down
4 changes: 2 additions & 2 deletions tests/integration/distribution/keeper/msg_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func initFixture(t testing.TB) *fixture {
}

func TestMsgWithdrawDelegatorReward(t *testing.T) {
t.Skip("skipping test for HV2, see https://polygon.atlassian.net/browse/POS-2540")
t.Skip("In HV2 we dont use distribution module")
t.Parallel()
f := initFixture(t)

Expand Down Expand Up @@ -880,7 +880,7 @@ func TestMsgCommunityPoolSpend(t *testing.T) {
}

func TestMsgDepositValidatorRewardsPool(t *testing.T) {
t.Skip("skipping test for HV2, see https://polygon.atlassian.net/browse/POS-2540")
t.Skip("In HV2 we dont use distribution module")
t.Parallel()
f := initFixture(t)

Expand Down
2 changes: 1 addition & 1 deletion tests/integration/distribution/module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
)

func TestItCreatesModuleAccountOnInitBlock(t *testing.T) {
t.Skip("skipping test for HV2, see https://polygon.atlassian.net/browse/POS-2540")
t.Skip("In HV2 we dont use distribution module")
var accountKeeper authkeeper.AccountKeeper

app, err := simtestutil.SetupAtGenesis(
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/evidence/keeper/infraction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func initFixture(t testing.TB) *fixture {
}

func TestHandleDoubleSign(t *testing.T) {
t.Skip("skipping test for HV2, see https://polygon.atlassian.net/browse/POS-2540")
t.Skip("In HV2 we dont use evidence module")
t.Parallel()
f := initFixture(t)

Expand Down Expand Up @@ -257,7 +257,7 @@ func TestHandleDoubleSign(t *testing.T) {
}

func TestHandleDoubleSign_TooOld(t *testing.T) {
t.Skip("skipping test for HV2, see https://polygon.atlassian.net/browse/POS-2540")
t.Skip("In HV2 we dont use evidence module")
t.Parallel()
f := initFixture(t)

Expand Down
8 changes: 4 additions & 4 deletions x/authz/simulation/operations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type SimTestSuite struct {
}

func (suite *SimTestSuite) SetupTest() {
suite.T().Skip("skipping test for HV2, see https://polygon.atlassian.net/browse/POS-2540")
suite.T().Skip("In HV2 we dont use authz module")
app, err := simtestutil.Setup(
depinject.Configs(
testutil.AppConfig,
Expand Down Expand Up @@ -118,7 +118,7 @@ func (suite *SimTestSuite) getTestingAccounts(r *rand.Rand, n int) []simtypes.Ac
}

func (suite *SimTestSuite) TestSimulateGrant() {
suite.T().Skip("skipping test for HV2, see https://polygon.atlassian.net/browse/POS-2540")
suite.T().Skip("In HV2 we dont use authz module")
s := rand.NewSource(1)
r := rand.New(s)
accounts := suite.getTestingAccounts(r, 2)
Expand Down Expand Up @@ -148,7 +148,7 @@ func (suite *SimTestSuite) TestSimulateGrant() {
}

func (suite *SimTestSuite) TestSimulateRevoke() {
suite.T().Skip("skipping test for HV2, see https://polygon.atlassian.net/browse/POS-2540")
suite.T().Skip("In HV2 we dont use authz module")
// setup 3 accounts
s := rand.NewSource(2)
r := rand.New(s)
Expand Down Expand Up @@ -186,7 +186,7 @@ func (suite *SimTestSuite) TestSimulateRevoke() {
}

func (suite *SimTestSuite) TestSimulateExec() {
suite.T().Skip("skipping test for HV2, see https://polygon.atlassian.net/browse/POS-2540")
suite.T().Skip("In HV2 we dont use authz module")
// setup 3 accounts
s := rand.NewSource(1)
r := rand.New(s)
Expand Down
2 changes: 1 addition & 1 deletion x/distribution/keeper/delegation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ func TestCalculateRewardsMultiDelegatorMultWithdraw(t *testing.T) {
}

func Test100PercentCommissionReward(t *testing.T) {
t.Skip("skipping test for HV2, see https://polygon.atlassian.net/browse/POS-2540")
t.Skip("In HV2 we dont use distribution module")
ctrl := gomock.NewController(t)
key := storetypes.NewKVStoreKey(disttypes.StoreKey)
storeService := runtime.NewKVStoreService(key)
Expand Down
10 changes: 5 additions & 5 deletions x/distribution/simulation/operations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (suite *SimTestSuite) TestWeightedOperations() {
// TestSimulateMsgSetWithdrawAddress tests the normal scenario of a valid message of type TypeMsgSetWithdrawAddress.
// Abonormal scenarios, where the message is created by an errors, are not tested here.
func (suite *SimTestSuite) TestSimulateMsgSetWithdrawAddress() {
suite.T().Skip("skipping test for HV2, see https://polygon.atlassian.net/browse/POS-2540")
suite.T().Skip("In HV2 we dont use distribution module")
// setup 3 accounts
s := rand.NewSource(1)
r := rand.New(s)
Expand Down Expand Up @@ -100,7 +100,7 @@ func (suite *SimTestSuite) TestSimulateMsgSetWithdrawAddress() {
// of type TypeMsgWithdrawDelegatorReward.
// Abonormal scenarios, where the message is created by an errors, are not tested here.
func (suite *SimTestSuite) TestSimulateMsgWithdrawDelegatorReward() {
suite.T().Skip("skipping test for HV2, see https://polygon.atlassian.net/browse/POS-2540")
suite.T().Skip("In HV2 we dont use distribution module")
// setup 3 accounts
s := rand.NewSource(4)
r := rand.New(s)
Expand Down Expand Up @@ -147,7 +147,7 @@ func (suite *SimTestSuite) TestSimulateMsgWithdrawDelegatorReward() {
// of type TypeMsgWithdrawValidatorCommission.
// Abonormal scenarios, where the message is created by an errors, are not tested here.
func (suite *SimTestSuite) TestSimulateMsgWithdrawValidatorCommission() {
suite.T().Skip("skipping test for HV2, see https://polygon.atlassian.net/browse/POS-2540")
suite.T().Skip("In HV2 we dont use distribution module")
suite.testSimulateMsgWithdrawValidatorCommission("atoken")
suite.testSimulateMsgWithdrawValidatorCommission("tokenxxx")
}
Expand Down Expand Up @@ -217,7 +217,7 @@ func (suite *SimTestSuite) testSimulateMsgWithdrawValidatorCommission(tokenName
// TestSimulateMsgFundCommunityPool tests the normal scenario of a valid message of type TypeMsgFundCommunityPool.
// Abonormal scenarios, where the message is created by an errors, are not tested here.
func (suite *SimTestSuite) TestSimulateMsgFundCommunityPool() {
suite.T().Skip("skipping test for HV2, see https://polygon.atlassian.net/browse/POS-2540")
suite.T().Skip("In HV2 we dont use distribution module")
// setup 3 accounts
s := rand.NewSource(1)
r := rand.New(s)
Expand Down Expand Up @@ -259,7 +259,7 @@ type SimTestSuite struct {
}

func (suite *SimTestSuite) SetupTest() {
suite.T().Skip("skipping test for HV2, see https://polygon.atlassian.net/browse/POS-2540")
suite.T().Skip("In HV2 we dont use distribution module")
var (
appBuilder *runtime.AppBuilder
err error
Expand Down
2 changes: 1 addition & 1 deletion x/evidence/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,6 @@ func (suite *GenesisTestSuite) TestExportGenesis() {
}

func TestGenesisTestSuite(t *testing.T) {
t.Skip("skipping test for HV2, see https://polygon.atlassian.net/browse/POS-2540")
t.Skip("In HV2 we dont use evidence module")
suite.Run(t, new(GenesisTestSuite))
}
2 changes: 1 addition & 1 deletion x/feegrant/simulation/operations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,6 @@ func (suite *SimTestSuite) TestSimulateMsgRevokeAllowance() {
}

func TestSimTestSuite(t *testing.T) {
t.Skip("skipping test for HV2, see https://polygon.atlassian.net/browse/POS-2540")
t.Skip("In HV2 we don't use feegrant module")
suite.Run(t, new(SimTestSuite))
}

0 comments on commit 6a0cae3

Please sign in to comment.