Skip to content

Commit

Permalink
[1752]: Fix the broken cli unit tests to create the right network. Fi…
Browse files Browse the repository at this point in the history
…x a couple event tests to expect the new type.
  • Loading branch information
SpicyLemon committed Nov 17, 2023
1 parent 75a019e commit 28f2d31
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions x/quarantine/client/testutil/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ import (

"github.com/stretchr/testify/suite"

"github.com/cosmos/cosmos-sdk/testutil/network"
"github.com/provenance-io/provenance/internal/pioconfig"
"github.com/provenance-io/provenance/testutil"
)

func TestIntegrationTestSuite(t *testing.T) {
cfg := network.DefaultConfig()
cfg.NumValidators = 2
cfg.TimeoutCommit = 1 * time.Second
pioconfig.SetProvenanceConfig("stake", 0)
cfg := testutil.DefaultTestNetworkConfig()
cfg.NumValidators = 1
cfg.TimeoutCommit = 500 * time.Millisecond
suite.Run(t, NewIntegrationTestSuite(cfg))
}
4 changes: 2 additions & 2 deletions x/quarantine/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func (s *TestSuite) TestQuarantineOptInOut() {

expected := sdk.Events{
{
Type: "cosmos.quarantine.v1beta1.EventOptIn",
Type: "provenance.quarantine.v1.EventOptIn",
Attributes: []abci.EventAttribute{
{
Key: []byte("to_address"),
Expand All @@ -198,7 +198,7 @@ func (s *TestSuite) TestQuarantineOptInOut() {

expected := sdk.Events{
{
Type: "cosmos.quarantine.v1beta1.EventOptOut",
Type: "provenance.quarantine.v1.EventOptOut",
Attributes: []abci.EventAttribute{
{
Key: []byte("to_address"),
Expand Down

0 comments on commit 28f2d31

Please sign in to comment.