test(drivers/mysql): loose unit testing for transaction (#3819)

This commit is contained in:
oldme 2024-09-28 11:19:14 +08:00 committed by GitHub
parent 79451e4624
commit 8708dc7940
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -98,10 +98,10 @@ func Test_TX_Prepare(t *testing.T) {
t.AssertNil(err)
t.Assert(array[0], "100")
rows.Close()
err = rows.Close()
t.AssertNil(err)
tx.Commit()
err = tx.Commit()
t.AssertNil(err)
})
}