From dbc972b68e538bd5a5087798b4f09b11e6445b81 Mon Sep 17 00:00:00 2001 From: popescu-af Date: Tue, 18 Jul 2023 13:12:58 +0200 Subject: [PATCH] Update exec_test.go Co-authored-by: Stephen Afam-Osemene --- exec_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exec_test.go b/exec_test.go index 81ddc0b..678871c 100644 --- a/exec_test.go +++ b/exec_test.go @@ -77,9 +77,9 @@ func testQuery[T any](t *testing.T, name string, tc queryCase[T]) { t.Helper() t.Run(name, func(t *testing.T) { - ctx := context.Background() - if tc.ctx != nil { - ctx = tc.ctx + ctx := tc.ctx + if ctx == nil { + ctx = context.Background() } ex, clean := createDB(t, tc.columns)