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