From 69c9879d4ab22d6662f6a1fcf2adb54d335f70dd Mon Sep 17 00:00:00 2001 From: Jay Yu <103467857+jayy04@users.noreply.github.com> Date: Tue, 27 Feb 2024 13:55:56 -0500 Subject: [PATCH] fix lint --- protocol/x/clob/keeper/orders_test.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/protocol/x/clob/keeper/orders_test.go b/protocol/x/clob/keeper/orders_test.go index 79561fbf92..69b3a901b3 100644 --- a/protocol/x/clob/keeper/orders_test.go +++ b/protocol/x/clob/keeper/orders_test.go @@ -539,7 +539,8 @@ func TestPlaceShortTermOrder(t *testing.T) { // 1. The first should have a buy price well below the oracle price of 50,000. (success) // 2. The second should have a buy price above the oracle price of 50,000. (undercollateralized) // 3. The third should have the order in common with #1 and the subaccount in common with #2 and should succeed. - `Subaccount can now place buy order that would failed the deprecated pessimistic collateralization check with the oracle price`: { + `Subaccount can now place buy order that would failed the + deprecated pessimistic collateralization check with the oracle price`: { perpetuals: []perptypes.Perpetual{ constants.BtcUsd_50PercentInitial_40PercentMaintenance, }, @@ -591,7 +592,8 @@ func TestPlaceShortTermOrder(t *testing.T) { // 1. The first should have a sell price well above the oracle price of 50,000. (success) // 2. The second should have a sell price below the oracle price of 50,000 subticks. (undercollateralized) // 3. The third should have the order in common with #1 and the subaccount in common with #2 and should succeed. - `Subaccount can now place sell order that would failed the deprecated pessimistic collateralization check with the oracle price`: { + `Subaccount can now place sell order that would failed the + deprecated pessimistic collateralization check with the oracle price`: { perpetuals: []perptypes.Perpetual{ constants.BtcUsd_50PercentInitial_40PercentMaintenance, }, @@ -700,7 +702,7 @@ func TestPlaceShortTermOrder(t *testing.T) { require.NoError(t, err) } - ks.ClobKeeper.InitializeEquityTierLimit( + err = ks.ClobKeeper.InitializeEquityTierLimit( ctx, types.EquityTierLimitConfiguration{ ShortTermOrderEquityTiers: []types.EquityTierLimit{ @@ -717,6 +719,7 @@ func TestPlaceShortTermOrder(t *testing.T) { }, }, ) + require.NoError(t, err) // Create all existing orders. for _, order := range tc.existingOrders {