From 185f5a314f4dba7c8f793517abaec56ff7742c06 Mon Sep 17 00:00:00 2001 From: sylzd Date: Mon, 22 Nov 2021 17:47:26 +0800 Subject: [PATCH] add clean defer --- executor/executor_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/executor/executor_test.go b/executor/executor_test.go index e602b165ff9cc..69c94937cdbc2 100644 --- a/executor/executor_test.go +++ b/executor/executor_test.go @@ -590,6 +590,7 @@ func (s *testSuiteP2) TestAdminShowDDLJobs(c *C) { func (s *testSuiteP2) TestAdminShowDDLJobsInfo(c *C) { tk := testkit.NewTestKit(c, s.store) tk.MustExec("create database if not exists test_admin_show_ddl_jobs") + defer tk.MustExec("drop database if exists test_admin_show_ddl_jobs") tk.MustExec("use test_admin_show_ddl_jobs") tk.MustExec("drop table if exists t, t1;") tk.MustExec("create table t (a int);")