forked from mirror/go-sqlcipher
fix test
This commit is contained in:
parent
0acd8f7aec
commit
796dcab06d
|
@ -40,7 +40,7 @@ func TestCorruptDbErrors(t *testing.T) {
|
|||
_, err = db.Exec("drop table foo")
|
||||
}
|
||||
|
||||
sqliteErr := err.(Error)
|
||||
sqliteErr := err.(*Error)
|
||||
if sqliteErr.Code != ErrNotADB {
|
||||
t.Error("wrong error code for corrupted DB")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue