Skip to content

Commit

Permalink
fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Sep 28, 2017
1 parent 49f9543 commit c0f3d41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sqlite3_go18_test.go
Expand Up @@ -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 && context.DeadlineExceeded {
if err != nil && err != context.DeadlineExceeded {
t.Fatal(err)
}
if ctx.Err() != nil && context.DeadlineExceeded != ctx.Err() {
t.Fatalf(ctx.Err())
if ctx.Err() != nil && ctx.Err() != context.DeadlineExceeded {
t.Fatal(ctx.Err())
}
rows.Close()
}

0 comments on commit c0f3d41

Please sign in to comment.