aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sqlite3_go18_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/sqlite3_go18_test.go b/sqlite3_go18_test.go
index cca0a1f..695e0b2 100644
--- a/sqlite3_go18_test.go
+++ b/sqlite3_go18_test.go
@@ -127,11 +127,11 @@ func TestShortTimeout(t *testing.T) {
FROM test_table
ORDER BY key2 ASC`
rows, err := db.QueryContext(ctx, query)
- if err != nil {
+ if err != nil && context.DeadlineExceeded {
t.Fatal(err)
}
if ctx.Err() != nil && context.DeadlineExceeded != ctx.Err() {
- t.Fatalf("%v", ctx.Err())
+ t.Fatalf(ctx.Err())
}
rows.Close()
}