forked from mirror/go-sqlcipher
fix test
This commit is contained in:
parent
1d0b0f0e72
commit
bd7fdb6033
|
@ -110,7 +110,7 @@ func TestExtendedErrorCodes_ForeignKey(t *testing.T) {
|
||||||
if err == nil {
|
if err == nil {
|
||||||
t.Error("No error!")
|
t.Error("No error!")
|
||||||
} else {
|
} else {
|
||||||
sqliteErr := err.(Error)
|
sqliteErr := err.(*Error)
|
||||||
if sqliteErr.Code != ErrConstraint {
|
if sqliteErr.Code != ErrConstraint {
|
||||||
t.Errorf("Wrong basic error code: %d != %d",
|
t.Errorf("Wrong basic error code: %d != %d",
|
||||||
sqliteErr.Code, ErrConstraint)
|
sqliteErr.Code, ErrConstraint)
|
||||||
|
@ -166,7 +166,7 @@ func TestExtendedErrorCodes_NotNull(t *testing.T) {
|
||||||
if err == nil {
|
if err == nil {
|
||||||
t.Error("No error!")
|
t.Error("No error!")
|
||||||
} else {
|
} else {
|
||||||
sqliteErr := err.(Error)
|
sqliteErr := err.(*Error)
|
||||||
if sqliteErr.Code != ErrConstraint {
|
if sqliteErr.Code != ErrConstraint {
|
||||||
t.Errorf("Wrong basic error code: %d != %d",
|
t.Errorf("Wrong basic error code: %d != %d",
|
||||||
sqliteErr.Code, ErrConstraint)
|
sqliteErr.Code, ErrConstraint)
|
||||||
|
@ -222,7 +222,7 @@ func TestExtendedErrorCodes_Unique(t *testing.T) {
|
||||||
if err == nil {
|
if err == nil {
|
||||||
t.Error("No error!")
|
t.Error("No error!")
|
||||||
} else {
|
} else {
|
||||||
sqliteErr := err.(Error)
|
sqliteErr := err.(*Error)
|
||||||
if sqliteErr.Code != ErrConstraint {
|
if sqliteErr.Code != ErrConstraint {
|
||||||
t.Errorf("Wrong basic error code: %d != %d",
|
t.Errorf("Wrong basic error code: %d != %d",
|
||||||
sqliteErr.Code, ErrConstraint)
|
sqliteErr.Code, ErrConstraint)
|
||||||
|
|
Loading…
Reference in New Issue