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