fix: set buffer period to allow buffer to get fully appended before the estimation in buffer_test

This commit is contained in:
zenix 2022-06-10 15:24:13 +09:00
parent 71aae0c4bb
commit 1e67acd77a

View File

@ -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) {