From bd7fdb60336d54a68de20c03df2a036848e89eca Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Tue, 21 Mar 2017 00:57:55 +0900 Subject: [PATCH] fix test --- error_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/error_test.go b/error_test.go index 8ea68a1..339b57a 100644 --- a/error_test.go +++ b/error_test.go @@ -110,7 +110,7 @@ func TestExtendedErrorCodes_ForeignKey(t *testing.T) { if err == nil { t.Error("No error!") } else { - sqliteErr := err.(Error) + sqliteErr := err.(*Error) if sqliteErr.Code != ErrConstraint { t.Errorf("Wrong basic error code: %d != %d", sqliteErr.Code, ErrConstraint) @@ -166,7 +166,7 @@ func TestExtendedErrorCodes_NotNull(t *testing.T) { if err == nil { t.Error("No error!") } else { - sqliteErr := err.(Error) + sqliteErr := err.(*Error) if sqliteErr.Code != ErrConstraint { t.Errorf("Wrong basic error code: %d != %d", sqliteErr.Code, ErrConstraint) @@ -222,7 +222,7 @@ func TestExtendedErrorCodes_Unique(t *testing.T) { if err == nil { t.Error("No error!") } else { - sqliteErr := err.(Error) + sqliteErr := err.(*Error) if sqliteErr.Code != ErrConstraint { t.Errorf("Wrong basic error code: %d != %d", sqliteErr.Code, ErrConstraint)