fix test
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user