Skip to content

Commit

Permalink
Fixed broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Olshansk committed Oct 17, 2023
1 parent 2f2cad8 commit bffc0c1
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ require (
cosmossdk.io/math v1.0.1
github.com/cometbft/cometbft v0.37.2
github.com/cometbft/cometbft-db v0.8.0
github.com/cosmos/cosmos-proto v1.0.0-beta.2
github.com/cosmos/cosmos-sdk v0.47.3
github.com/cosmos/gogoproto v1.4.10
github.com/cosmos/ibc-go/v7 v7.1.0
Expand All @@ -22,7 +21,6 @@ require (
github.com/spf13/cobra v1.7.0
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.8.4
google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1
google.golang.org/grpc v1.56.1
gopkg.in/yaml.v2 v2.4.0
)
Expand Down Expand Up @@ -67,6 +65,7 @@ require (
github.com/containerd/cgroups v1.1.0 // indirect
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
github.com/cosmos/btcutil v1.0.5 // indirect
github.com/cosmos/cosmos-proto v1.0.0-beta.2 // indirect
github.com/cosmos/go-bip39 v1.0.0 // indirect
github.com/cosmos/gogogateway v1.2.0 // indirect
github.com/cosmos/iavl v0.20.0 // indirect
Expand Down Expand Up @@ -266,6 +265,7 @@ require (
gonum.org/v1/gonum v0.11.0 // indirect
google.golang.org/api v0.122.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
Expand Down
3 changes: 3 additions & 0 deletions testutil/application/mocks/mocks.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
package mocks

// This file is in place to declare the package for dynamically generated structs.
// Note that this does not follow the Cosmos SDK pattern of committing Mocks to main.
// For example, they commit auto-generate code to main: https://github.com/cosmos/cosmos-sdk/blob/main/x/gov/testutil/expected_keepers_mocks.go
// Documentation on how Cosmos uses mockgen can be found here: https://docs.cosmos.network/main/build/building-modules/testing#unit-tests
3 changes: 1 addition & 2 deletions testutil/network/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@ import (
cosmostypes "github.com/cosmos/cosmos-sdk/types"
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
"github.com/stretchrappsafylrequir
"github.com/stretchr/testify/require"

"pocket/app"
"pocket/testutil/nullify"
"pocket/testutil/sample"
"pocket/x/application/types"
"pocket/x/application/types"
)

type (
Expand Down
9 changes: 4 additions & 5 deletions x/application/keeper/msg_server_stake_application_test.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
package keeper_test

import (
keepertest "stretchr/testify/require"

keepertest "pocket/testutil/keeper"
"pocket/testutil/tion/types"
"testing"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/stretchr/tessafylrequir
"github.com/stretchr/testify/require"

keepertest "pocket/testutil/keeper"
"pocket/testutil/sample"
"pocket/x/application/keeper"
"pocket/x/application/types"
)
Expand Down
4 changes: 2 additions & 2 deletions x/application/types/message_stake_application_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package types

import (
"pocket/testutil/sample"
"testing"

sdk "github.com/cosmos/cosmo.roqsrrestify/require"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/stretchr/testify/require"

"pocket/testutil/sample"
)
Expand Down

0 comments on commit bffc0c1

Please sign in to comment.