mirror of https://github.com/mattn/go-sqlite3.git
Update test expectations follow change of concrete error type
This commit is contained in:
parent
19cb26da92
commit
e0729751ac
|
@ -27,7 +27,9 @@ func TestFailures(t *testing.T) {
|
||||||
if err == nil {
|
if err == nil {
|
||||||
_, err = db.Exec("drop table foo")
|
_, err = db.Exec("drop table foo")
|
||||||
}
|
}
|
||||||
if err.Code != ErrNotADB {
|
|
||||||
|
sqliteErr := err.(Error)
|
||||||
|
if sqliteErr.Code != ErrNotADB {
|
||||||
t.Error("wrong error code for corrupted DB")
|
t.Error("wrong error code for corrupted DB")
|
||||||
}
|
}
|
||||||
if err.Error() == "" {
|
if err.Error() == "" {
|
||||||
|
|
Loading…
Reference in New Issue