mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
fix: set buffer period to allow buffer to get fully appended before the estimation in buffer_test
This commit is contained in:
parent
71aae0c4bb
commit
1e67acd77a
|
@ -23,6 +23,7 @@ func TestDepthBuffer_ReadyState(t *testing.T) {
|
|||
},
|
||||
}, 33, nil
|
||||
})
|
||||
buf.SetBufferingPeriod(time.Millisecond * 5)
|
||||
|
||||
readyC := make(chan struct{})
|
||||
buf.OnReady(func(snapshot types.SliceOrderBook, updates []Update) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user