fix test
This commit is contained in:
parent
a25ac80777
commit
79d21489df
@ -22,6 +22,7 @@ import (
|
|||||||
func init() {
|
func init() {
|
||||||
CompactionThreshold = 5
|
CompactionThreshold = 5
|
||||||
CompactionBoundary = 2
|
CompactionBoundary = 2
|
||||||
|
CompactionSlack = 2
|
||||||
logging.SetLogLevel("splitstore", "DEBUG")
|
logging.SetLogLevel("splitstore", "DEBUG")
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -144,12 +145,12 @@ func testSplitStore(t *testing.T, cfg *Config) {
|
|||||||
coldCnt = countBlocks(cold)
|
coldCnt = countBlocks(cold)
|
||||||
hotCnt = countBlocks(hot)
|
hotCnt = countBlocks(hot)
|
||||||
|
|
||||||
if coldCnt != 8 {
|
if coldCnt != 6 {
|
||||||
t.Errorf("expected %d cold blocks, but got %d", 8, coldCnt)
|
t.Errorf("expected %d cold blocks, but got %d", 6, coldCnt)
|
||||||
}
|
}
|
||||||
|
|
||||||
if hotCnt != 5 {
|
if hotCnt != 7 {
|
||||||
t.Errorf("expected %d hot blocks, but got %d", 5, hotCnt)
|
t.Errorf("expected %d hot blocks, but got %d", 7, hotCnt)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure we can revert without panicking.
|
// Make sure we can revert without panicking.
|
||||||
|
Loading…
Reference in New Issue
Block a user