From 08408dc4d828ef1f2a9fb6be5d120e31873e9602 Mon Sep 17 00:00:00 2001 From: Dirkjan Bussink Date: Fri, 2 Feb 2024 07:01:02 +0100 Subject: [PATCH] Fix test Signed-off-by: Dirkjan Bussink --- go/vt/vtgate/plugin_mysql_server_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/go/vt/vtgate/plugin_mysql_server_test.go b/go/vt/vtgate/plugin_mysql_server_test.go index 9314fcd2550..5da79b9fe17 100644 --- a/go/vt/vtgate/plugin_mysql_server_test.go +++ b/go/vt/vtgate/plugin_mysql_server_test.go @@ -43,7 +43,6 @@ import ( type testHandler struct { mysql.UnimplementedHandler lastConn *mysql.Conn - env *vtenv.Environment } func (th *testHandler) NewConnection(c *mysql.Conn) { @@ -84,7 +83,7 @@ func (th *testHandler) WarningCount(c *mysql.Conn) uint16 { } func (th *testHandler) Env() *vtenv.Environment { - return th.env + return vtenv.NewTestEnv() } func TestConnectionUnixSocket(t *testing.T) {