]> Cypherpunks repositories - gostls13.git/commit
database/sql: use t.Context in tests
authorapocelipes <seve3r@outlook.com>
Sat, 8 Feb 2025 01:15:29 +0000 (01:15 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 10 Feb 2025 20:34:55 +0000 (12:34 -0800)
commit7715ca32fcaad84059752c944f40768374796651
treecb855e7cbb3caed1416b3fa4bc3b2064d612e1e8
parent6fd3ce52bbc628225e67f8811ff2f6db17a7bec6
database/sql: use t.Context in tests

Replace "context.WithCancel(context.Background())" with "t.Context()".

Updates #36532

Change-Id: I78a8ba422f076f4c697910922cf6dc35c628b1a7
GitHub-Last-Rev: 2eacdbe9ea97ac8d928704c2b605b276626d95dd
GitHub-Pull-Request: golang/go#71599
Reviewed-on: https://go-review.googlesource.com/c/go/+/647555
Reviewed-by: Jorropo <jorropo.pgm@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/database/sql/sql_test.go