Skip to content

Commit

Permalink
slippage: Fix TestRandomSlippage intermittent issue
Browse files Browse the repository at this point in the history
  • Loading branch information
thrasher- committed Aug 26, 2024
1 parent bdeb5bd commit facf203
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
func TestRandomSlippage(t *testing.T) {
t.Parallel()
resp := EstimateSlippagePercentage(decimal.NewFromInt(80), decimal.NewFromInt(100))
assert.True(t, resp.GreaterThan(decimal.NewFromFloat(0.8)), "result should be more than 0.8")
assert.True(t, resp.GreaterThanOrEqual(decimal.NewFromFloat(0.8)), "result should be greater than or equal to 0.8")
assert.True(t, resp.LessThan(decimal.NewFromInt(1)), "result should be less than 1")
}

Expand Down

0 comments on commit facf203

Please sign in to comment.