adjust coalescer delays
This commit is contained in:
parent
bda7ef52da
commit
a11032b10a
@ -53,9 +53,9 @@ const (
|
||||
|
||||
// coalescer configuration (TODO: use observer instead)
|
||||
var (
|
||||
coalesceMinDelay = 100 * time.Millisecond
|
||||
coalesceMaxDelay = time.Second
|
||||
coalesceMergeInterval = 100 * time.Millisecond
|
||||
coalesceMinDelay = time.Second
|
||||
coalesceMaxDelay = 15 * time.Second
|
||||
coalesceMergeInterval = time.Second
|
||||
)
|
||||
|
||||
// chain store interface; we could use store.ChainStore directly,
|
||||
|
@ -198,6 +198,12 @@ var rng *rand.Rand
|
||||
func init() {
|
||||
systemAddr, _ = address.NewIDAddress(0)
|
||||
rng = rand.New(rand.NewSource(314159))
|
||||
|
||||
// adjust those to make tests snappy
|
||||
coalesceMinDelay = time.Millisecond
|
||||
coalesceMaxDelay = 10 * time.Millisecond
|
||||
coalesceMergeInterval = time.Millisecond
|
||||
|
||||
}
|
||||
|
||||
func newMockChainStore() *mockChainStore {
|
||||
|
Loading…
Reference in New Issue
Block a user