Skip to content

Commit 619fe39

Browse files
committed
check errs
1 parent 6e39d67 commit 619fe39

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

client/client_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ func (s *clientTestSuite) TestConn_Ping() {
9292
func (s *clientTestSuite) TestConn_Compress() {
9393
addr := fmt.Sprintf("%s:%s", *test_util.MysqlHost, s.port)
9494
conn, err := Connect(addr, *testUser, *testPassword, "", func(conn *Conn) error {
95-
conn.SetCapability(mysql.CLIENT_COMPRESS)
96-
return nil
95+
return conn.SetCapability(mysql.CLIENT_COMPRESS)
9796
})
9897
require.NoError(s.T(), err)
9998

client/conn_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ func (s *connTestSuite) SetupSuite() {
3030
addr := fmt.Sprintf("%s:%s", *test_util.MysqlHost, s.port)
3131
s.c, err = Connect(addr, *testUser, *testPassword, "", func(c *Conn) error {
3232
// required for the ExecuteMultiple test
33-
c.SetCapability(mysql.CLIENT_MULTI_STATEMENTS)
33+
err = c.SetCapability(mysql.CLIENT_MULTI_STATEMENTS)
3434
c.SetAttributes(map[string]string{"attrtest": "attrvalue"})
35-
return nil
35+
return err
3636
})
3737
require.NoError(s.T(), err)
3838

0 commit comments

Comments
 (0)