File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,6 @@ func (c *Conn) compareCacheSha2PasswordAuthData(clientAuthData []byte) error {
151151 // 'fast' auth: write "More data" packet (first byte == 0x01) with the second byte = 0x03
152152 return c .writeAuthMoreDataFastAuth ()
153153 }
154-
155154 }
156155 // cache miss or validation failed, do full auth
157156 if err := c .writeAuthMoreDataFullAuth (); err != nil {
Original file line number Diff line number Diff line change 77 "testing"
88 "time"
99
10- _ "github.com/go-sql-driver/mysql"
1110 "github.com/go-mysql-org/go-mysql/mysql"
11+ _ "github.com/go-sql-driver/mysql"
1212 "github.com/pingcap/errors"
1313 "github.com/stretchr/testify/require"
1414)
@@ -64,7 +64,7 @@ func TestOnAuthSuccessCalled(t *testing.T) {
6464func TestOnAuthSuccessCanReject (t * testing.T ) {
6565 handler := & hookTrackingAuthenticationHandler {
6666 InMemoryAuthenticationHandler : NewInMemoryAuthenticationHandler (mysql .AUTH_NATIVE_PASSWORD ),
67- rejectOnSuccess : true ,
67+ rejectOnSuccess : true ,
6868 }
6969 require .NoError (t , handler .AddUser ("testuser" , "testpass" ))
7070
You can’t perform that action at this time.
0 commit comments