From cfd2d2cd49e9273d01cd1055484dcd7d99b79e63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Tue, 16 Nov 2021 10:19:42 +0100 Subject: [PATCH] Fix TestHandleAuthPlugin --- server/conn_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/conn_test.go b/server/conn_test.go index 34ec75124a828..64479ff1904d9 100644 --- a/server/conn_test.go +++ b/server/conn_test.go @@ -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)), }, @@ -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)