test(db): Test itr.Value in checkValuePanics (#2580)

Fixes #2573
This commit is contained in:
Overbool 2018-10-09 20:19:00 +08:00 committed by Alexander Simmerl
parent 724e264ff5
commit 561fc2d717
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ func checkKeyPanics(t *testing.T, itr Iterator) {
}
func checkValuePanics(t *testing.T, itr Iterator) {
assert.Panics(t, func() { itr.Key() }, "checkValuePanics expected panic but didn't")
assert.Panics(t, func() { itr.Value() }, "checkValuePanics expected panic but didn't")
}
func newTempDB(t *testing.T, backend DBBackendType) (db DB, dbDir string) {