From 796dcab06ddc1eda59e0c1b73c8f0b902f734660 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Tue, 21 Mar 2017 00:42:54 +0900 Subject: [PATCH] fix test --- error_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/error_test.go b/error_test.go index 1ccbe5b..8ea68a1 100644 --- a/error_test.go +++ b/error_test.go @@ -40,7 +40,7 @@ func TestCorruptDbErrors(t *testing.T) { _, err = db.Exec("drop table foo") } - sqliteErr := err.(Error) + sqliteErr := err.(*Error) if sqliteErr.Code != ErrNotADB { t.Error("wrong error code for corrupted DB") }