Skip to content

Commit

Permalink
Fix TestHandleAuthPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden committed Nov 23, 2021
1 parent a714529 commit cfd2d2c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -927,6 +927,8 @@ func TestHandleAuthPlugin(t *testing.T) {
connectionID: 1,
alloc: arena.NewAllocator(1024),
chunkAlloc: chunk.NewAllocator(),
collation: mysql.DefaultCollationID,
peerHost: "localhost",
pkt: &packetIO{
bufWriter: bufio.NewWriter(bytes.NewBuffer(nil)),
},
Expand All @@ -935,6 +937,7 @@ func TestHandleAuthPlugin(t *testing.T) {
ctx := context.Background()
resp := handshakeResponse41{
Capability: mysql.ClientProtocol41 | mysql.ClientPluginAuth,
AuthPlugin: mysql.AuthNativePassword,
}
err = cc.handleAuthPlugin(ctx, &resp)
require.NoError(t, err)
Expand Down

0 comments on commit cfd2d2c

Please sign in to comment.