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)