fix error handling in test "QueryContext with context expiring"
While the query had succeeded, the context can expire right after. In this situation, iterating the rows will fail. The test need to check for sql.Rows.Err() too.
Also, don't forget to close sql.Rows when done to avoid memory leak.