diff --git a/sqle/driver/mysql/audit_test.go b/sqle/driver/mysql/audit_test.go index 8d13176e0..b16c6c515 100644 --- a/sqle/driver/mysql/audit_test.go +++ b/sqle/driver/mysql/audit_test.go @@ -114,7 +114,8 @@ func NewMockInspectWithIsExecutedSQL(e *executor.Executor) *MysqlDriverImpl { Password: "123456", DatabaseName: "mysql", }, - Ctx: session.NewMockContext(e), + isConnected: true, + Ctx: session.NewMockContext(e), cnf: &Config{ DDLOSCMinSize: 16, DDLGhostMinSize: 16,