From e0729751ac189f746a0322b36e0f33911e624846 Mon Sep 17 00:00:00 2001 From: Robert Knight Date: Tue, 19 Nov 2013 13:53:24 +0000 Subject: [PATCH] Update test expectations follow change of concrete error type --- error_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/error_test.go b/error_test.go index b3f8447..0f92881 100644 --- a/error_test.go +++ b/error_test.go @@ -27,7 +27,9 @@ func TestFailures(t *testing.T) { if err == nil { _, err = db.Exec("drop table foo") } - if err.Code != ErrNotADB { + + sqliteErr := err.(Error) + if sqliteErr.Code != ErrNotADB { t.Error("wrong error code for corrupted DB") } if err.Error() == "" {