Fixes test

This commit is contained in:
mattn 2013-09-03 19:40:18 +09:00
parent 6176b90b70
commit 77c9648f4a
1 changed files with 2 additions and 7 deletions

View File

@ -575,12 +575,7 @@ func TestTransaction(t *testing.T) {
}
rows, err = tx.Query("SELECT id from foo")
if err != nil {
t.Fatal("Unable to query foo table:", err)
if err == nil {
t.Fatal("Expected failure to query")
}
if !rows.Next() {
t.Fatal("Unable to query results:", err)
}
}