Skip to content

Commit

Permalink
add sleep before staking
Browse files Browse the repository at this point in the history
  • Loading branch information
puneet2019 committed May 30, 2024
1 parent 2b03bf8 commit fcd48ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions interchaintest/liquidstake_stkxprt_globalcap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"encoding/json"
"testing"
"time"

"cosmossdk.io/math"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
Expand Down Expand Up @@ -166,6 +167,7 @@ func TestLiquidStakeGlobalCapStkXPRT(t *testing.T) {
)
require.NoError(t, err, "error submitting liquidstake validators whitelist update tx")
require.Equal(t, uint32(0), txResp.Code, txResp.RawLog)
time.Sleep(6 * time.Second)

stakingParams, _, err := chainNode.ExecQuery(ctx, "staking", "params")
require.NoError(t, err)
Expand Down
8 changes: 4 additions & 4 deletions interchaintest/liquidstake_stkxprt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ package interchaintest

import (
"context"
"encoding/json"
"testing"

"cosmossdk.io/math"
"encoding/json"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
Expand All @@ -16,6 +14,8 @@ import (
"github.com/strangelove-ventures/interchaintest/v7/ibc"
"github.com/strangelove-ventures/interchaintest/v7/testutil"
"github.com/stretchr/testify/require"
"testing"
"time"

"github.com/persistenceOne/persistenceCore/v11/interchaintest/helpers"
)
Expand Down Expand Up @@ -158,8 +158,8 @@ func TestLiquidStakeStkXPRT(t *testing.T) {
)
require.NoError(t, err, "error submitting liquidstake validators whitelist update tx")
require.Equal(t, uint32(0), txResp.Code, txResp.RawLog)

// Liquid stake XPRT from the first user (5 XPRT)
time.Sleep(6 * time.Second)

firstUserLiquidStakeAmount := sdk.NewInt(5_000_000)
firstUserLiquidStakeCoins := sdk.NewCoin(testDenom, firstUserLiquidStakeAmount)
Expand Down

0 comments on commit fcd48ae

Please sign in to comment.