From 58cb65824edfb3428f267b4a96a4e28a557fa030 Mon Sep 17 00:00:00 2001 From: itaiad200 Date: Sun, 10 Sep 2023 12:03:51 +0300 Subject: [PATCH] Update pkg/kv/postgres/store_test.go Co-authored-by: Barak Amar --- pkg/kv/postgres/store_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kv/postgres/store_test.go b/pkg/kv/postgres/store_test.go index 0517649565d..2502ac3aa91 100644 --- a/pkg/kv/postgres/store_test.go +++ b/pkg/kv/postgres/store_test.go @@ -24,7 +24,7 @@ func TestPostgresKV(t *testing.T) { if err != nil { t.Fatalf("Unable to connect to database: %v", err) } - defer conn.Close(context.Background()) + defer conn.Close(ctx) // create a new schema per test schemaName := "test_schema" + testutil.UniqueName()