Skip to content

Commit

Permalink
Fix perps tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Warehime committed Mar 18, 2024
1 parent 9dc0311 commit c867d60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion protocol/testutil/keeper/perpetuals.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ func CreateNPerpetuals(
allLiquidityTiers := keeper.GetAllLiquidityTiers(ctx)
require.Greater(t, len(allLiquidityTiers), 0)

CreateNMarkets(t, ctx, pricesKeeper, n)
for i := range items {
CreateNMarkets(t, ctx, pricesKeeper, n)

var defaultFundingPpm int32
marketType := types.PerpetualMarketType_PERPETUAL_MARKET_TYPE_CROSS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ func TestUpdatePerpetualParams(t *testing.T) {
perptest.WithTicker("ETH-USD"),
perptest.WithLiquidityTier(1),
)
testMarket1 := *pricestest.GenerateMarketParamPrice(pricestest.WithId(1))
testMarket4 := *pricestest.GenerateMarketParamPrice(pricestest.WithId(4))
testMarket1 := *pricestest.GenerateMarketParamPrice(pricestest.WithId(1), pricestest.WithPair("0-0"))
testMarket4 := *pricestest.GenerateMarketParamPrice(pricestest.WithId(4), pricestest.WithPair("1-1"))

tests := map[string]struct {
setup func(*testing.T, sdk.Context, *perpkeeper.Keeper, *priceskeeper.Keeper)
Expand Down

0 comments on commit c867d60

Please sign in to comment.