Fixes test
This commit is contained in:
@@ -575,12 +575,7 @@ func TestTransaction(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
rows, err = tx.Query("SELECT id from foo")
|
rows, err = tx.Query("SELECT id from foo")
|
||||||
if err != nil {
|
if err == nil {
|
||||||
t.Fatal("Unable to query foo table:", err)
|
t.Fatal("Expected failure to query")
|
||||||
}
|
}
|
||||||
|
|
||||||
if !rows.Next() {
|
|
||||||
t.Fatal("Unable to query results:", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user