Skip to content

Commit

Permalink
fix TestMarketDataStore_AddKLineAndTruncateWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Jan 17, 2025
1 parent 7ce6f3e commit 71713b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/bbgo/marketdatastore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func TestMarketDataStore_AddKLineAndTruncateWindow(t *testing.T) {
window := store.KLineWindows[interval]

// make sure the capacity is fixed
assert.Equal(t, KLineWindowCapacityLimit, cap(*window))
assert.Equal(t, KLineWindowShrinkSize, cap(*window))

// after truncate, it will remain (KLineWindowCapacityLimit / 2) KLine in the window
// so the first GIC will be the maxCap - (KLineWindowCapacityLimit / 2)
Expand Down

0 comments on commit 71713b1

Please sign in to comment.