aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2017-03-21 00:57:55 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2017-03-21 00:57:55 +0900
commitbd7fdb60336d54a68de20c03df2a036848e89eca (patch)
tree86f498912701f89df13e535f12fc440c075e0dbf
parentdisable extension when loading failed (diff)
downloadgolite-bd7fdb60336d54a68de20c03df2a036848e89eca.tar.gz
golite-bd7fdb60336d54a68de20c03df2a036848e89eca.tar.xz
fix test
-rw-r--r--error_test.go6
1 files 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)