Browse Source

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

Fixes #2573
pull/2584/head
Overbool 6 years ago
committed by Alexander Simmerl
parent
commit
561fc2d717
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libs/db/common_test.go

+ 1
- 1
libs/db/common_test.go View File

@ -57,7 +57,7 @@ func checkKeyPanics(t *testing.T, itr Iterator) {
} }
func checkValuePanics(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) { func newTempDB(t *testing.T, backend DBBackendType) (db DB, dbDir string) {


Loading…
Cancel
Save