grid2: fix TestStrategy_checkMinimalQuoteInvestment

This commit is contained in:
c9s 2022-12-06 16:37:08 +08:00
parent b0381fd927
commit 46d1207adb

View File

@ -471,7 +471,7 @@ func TestStrategy_checkMinimalQuoteInvestment(t *testing.T) {
s.QuoteInvestment = number(10_000) s.QuoteInvestment = number(10_000)
s.GridNum = 10 s.GridNum = 10
minQuoteInvestment := calculateMinimalQuoteInvestment(s.Market, s.LowerPrice, s.UpperPrice, s.GridNum) minQuoteInvestment := calculateMinimalQuoteInvestment(s.Market, s.LowerPrice, s.UpperPrice, s.GridNum)
assert.Equal(t, "20", minQuoteInvestment.String()) assert.Equal(t, "200", minQuoteInvestment.String())
err := s.checkMinimalQuoteInvestment() err := s.checkMinimalQuoteInvestment()
assert.NoError(t, err) assert.NoError(t, err)