This commit is contained in:
Yasuhiro Matsumoto 2017-03-21 00:42:54 +09:00
parent 0acd8f7aec
commit 796dcab06d
1 changed files with 1 additions and 1 deletions

View File

@ -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")
}