database/sql: remove useless error check

Signed-off-by: guoguangwu <guoguangwug@gmail.com>
This commit is contained in:
guoguangwu 2024-03-05 10:33:17 +08:00
parent 5dcc04aeac
commit 587bed9a64
1 changed files with 0 additions and 3 deletions

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 {