Skip to content

Commit

Permalink
[bugfix] fix test case initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
waldoweng committed Aug 14, 2019
1 parent 591b8b7 commit dbd70fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion storage/bitcask_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,11 @@ func BenchmarkBitcask_ConcurrentWrite(benchmark *testing.B) {

func TestMain(m *testing.M) {
log.SetFlags(log.Ltime | log.Lshortfile)
b = NewBitcask(CreateOption{})
b = NewBitcask(CreateOption{
MaxKeySize: 1024,
MaxValueSize: 1024 * 1024,
CompactSize: 128 * 1024,
})
result := m.Run()
b.Destory()
os.Exit(result)
Expand Down

0 comments on commit dbd70fe

Please sign in to comment.