Update test expectations follow change of concrete error type

This commit is contained in:
Robert Knight 2013-11-19 13:53:24 +00:00
parent 19cb26da92
commit e0729751ac
1 changed files with 3 additions and 1 deletions

View File

@ -27,7 +27,9 @@ func TestFailures(t *testing.T) {
if err == nil {
_, 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")
}
if err.Error() == "" {