Compare commits

..

4 Commits

Author SHA1 Message Date
futreall
48136d634e
Merge ac42119583 into 5051f75b52 2024-11-20 09:45:23 +07:00
Solovyov1796
5051f75b52
Merge pull request #91 from Solovyov1796/dev2
fix unit test
2024-11-20 10:45:08 +08:00
Solovyov1796
5c8ced4b37 fix unit test 2 2024-11-19 18:21:52 +08:00
Solovyov1796
47b6341324 fix unit test 2024-11-19 18:20:43 +08:00
5 changed files with 11 additions and 9 deletions

View File

@ -8,10 +8,10 @@ import (
func (suite *IntegrationTestSuite) TestUpgrade_PreciseBankReserveTransfer() {
suite.SkipIfUpgradeDisabled()
// beforeUpgradeCtx := suite.Kava.Grpc.CtxAtHeight(suite.UpgradeHeight - 1)
// afterUpgradeCtx := suite.Kava.Grpc.CtxAtHeight(suite.UpgradeHeight)
beforeUpgradeCtx := suite.ZgChain.Grpc.CtxAtHeight(suite.UpgradeHeight - 1)
afterUpgradeCtx := suite.ZgChain.Grpc.CtxAtHeight(suite.UpgradeHeight)
// grpcClient := suite.Kava.Grpc
grpcClient := suite.ZgChain.Grpc
// -----------------------------
// Get initial reserve balances

View File

@ -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"
)
@ -74,7 +74,7 @@ func TestNewFractionalBalance(t *testing.T) {
}
func TestFractionalBalance_Validate(t *testing.T) {
app.SetSDKConfig()
chaincfg.SetSDKConfig()
tests := []struct {
name string

View File

@ -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

View File

@ -4,7 +4,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/testutil"
"github.com/0glabs/0g-chain/x/precisebank/types"
sdk "github.com/cosmos/cosmos-sdk/types"
@ -12,7 +12,7 @@ import (
)
func TestGenesisStateValidate_Basic(t *testing.T) {
app.SetSDKConfig()
chaincfg.SetSDKConfig()
testCases := []struct {
name string

View File

@ -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"
)