From 561fc2d71733e58f9011e1c2e7c45e22dc568756 Mon Sep 17 00:00:00 2001 From: Overbool Date: Tue, 9 Oct 2018 20:19:00 +0800 Subject: [PATCH] test(db): Test itr.Value in checkValuePanics (#2580) Fixes #2573 --- libs/db/common_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/db/common_test.go b/libs/db/common_test.go index 13e6ed377..1e27a7cac 100644 --- a/libs/db/common_test.go +++ b/libs/db/common_test.go @@ -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) {