diff --git a/protocol/x/perpetuals/keeper/perpetual_test.go b/protocol/x/perpetuals/keeper/perpetual_test.go index 50dea49786c..df519d1d7c4 100644 --- a/protocol/x/perpetuals/keeper/perpetual_test.go +++ b/protocol/x/perpetuals/keeper/perpetual_test.go @@ -883,11 +883,11 @@ func TestGetMarginRequirements_Success(t *testing.T) { // If test case contains non-nil open interest, set it up. if tc.openInterest != nil { - pc.PerpetualsKeeper.ModifyOpenInterest( + require.NoError(t, pc.PerpetualsKeeper.ModifyOpenInterest( pc.Ctx, perpetual.Params.Id, tc.openInterest, // initialized as zero, so passing `openInterest` as delta amount. - ) + )) } // Verify initial and maintenance margin requirements are calculated correctly.