Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Solovyov1796 committed Nov 19, 2024
1 parent ae7d1ad commit 47b6341
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions x/precisebank/types/fractional_balance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"

sdkmath "cosmossdk.io/math"
"github.com/0glabs/0g-chain/app"
"github.com/0glabs/0g-chain/chaincfg"
"github.com/0glabs/0g-chain/x/precisebank/types"
"github.com/stretchr/testify/require"
)
Expand Down Expand Up @@ -74,7 +74,7 @@ func TestNewFractionalBalance(t *testing.T) {
}

func TestFractionalBalance_Validate(t *testing.T) {
app.SetSDKConfig()
chaincfg.SetSDKConfig()

tests := []struct {
name string
Expand Down
4 changes: 2 additions & 2 deletions x/precisebank/types/fractional_balances_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import (
"testing"

sdkmath "cosmossdk.io/math"
"github.com/0glabs/0g-chain/app"
"github.com/0glabs/0g-chain/chaincfg"
"github.com/0glabs/0g-chain/x/precisebank/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/stretchr/testify/require"
)

func TestFractionalBalances_Validate(t *testing.T) {
app.SetSDKConfig()
chaincfg.SetSDKConfig()

tests := []struct {
name string
Expand Down
4 changes: 2 additions & 2 deletions x/precisebank/types/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import (
"testing"

sdkmath "cosmossdk.io/math"
"github.com/0glabs/0g-chain/app"
"github.com/0glabs/0g-chain/chaincfg"
"github.com/0glabs/0g-chain/x/precisebank/testutil"
"github.com/0glabs/0g-chain/x/precisebank/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/stretchr/testify/require"
)

func TestGenesisStateValidate_Basic(t *testing.T) {
app.SetSDKConfig()
chaincfg.SetSDKConfig()

testCases := []struct {
name string
Expand Down
2 changes: 2 additions & 0 deletions x/pricefeed/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import (
tmprototypes "github.com/cometbft/cometbft/proto/tendermint/types"

"github.com/0glabs/0g-chain/app"
"github.com/0glabs/0g-chain/x/pricefeed/keeper"
"github.com/0glabs/0g-chain/x/pricefeed/testutil"
"github.com/0glabs/0g-chain/x/pricefeed/types"
)

Expand Down

0 comments on commit 47b6341

Please sign in to comment.