1
0
mirror of https://github.com/golang/go synced 2024-11-17 00:14:50 -07:00

database/sql: remove useless error check

Change-Id: Id2d45a4b43b05deba4e2c31f7c03008c2f2c18a2
GitHub-Last-Rev: 587bed9a64
GitHub-Pull-Request: golang/go#66110
Reviewed-on: https://go-review.googlesource.com/c/go/+/569075
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Jorropo <jorropo.pgm@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
This commit is contained in:
guoguangwu 2024-03-05 02:38:41 +00:00 committed by Gopher Robot
parent f0d1195e13
commit 0e89b67ed2

View File

@ -2402,9 +2402,6 @@ func TestConnMaxLifetime(t *testing.T) {
// Expire first conn
offset = 11 * time.Second
db.SetConnMaxLifetime(10 * time.Second)
if err != nil {
t.Fatal(err)
}
tx, err = db.Begin()
if err != nil {