Commit 0a8da4bb authored by Romain LE DISEZ's avatar Romain LE DISEZ
Browse files

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.
parent f925b4f3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment