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) {