Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
satoshi-099 committed Mar 29, 2024
1 parent bde5b60 commit 7bcb323
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func createDB() (*DB, error) {
options := DefaultOptions
options.ShardCount = 4
options.DirPath = fmt.Sprintf("tmp-%x", time.Now().UnixNano())
options.ShrinkCronExpr = "0/3 * 0/1 * * ?" // every 3 seconds
options.ShrinkCronExpr = ""
return Open(options)
}

Expand Down Expand Up @@ -685,6 +685,9 @@ func TestInvalidCodec(t *testing.T) {
assert.Panics(func() {
reader.Byte()
})
assert.Panics(func() {
reader.RawBytes()
})
}

func TestRace(t *testing.T) {
Expand Down

0 comments on commit 7bcb323

Please sign in to comment.