diff --git a/pkg/bindinfo/tests/bind_test.go b/pkg/bindinfo/tests/bind_test.go index 7c8dfbf68324f..5c94a3e429491 100644 --- a/pkg/bindinfo/tests/bind_test.go +++ b/pkg/bindinfo/tests/bind_test.go @@ -803,6 +803,11 @@ func TestFuzzyBindingHints(t *testing.T) { } func TestBatchDropBindings(t *testing.T) { + originLease := bindinfo.Lease + bindinfo.Lease = 0 + defer func() { + bindinfo.Lease = originLease + }() store := testkit.CreateMockStore(t) tk := testkit.NewTestKit(t, store) tk.MustExec(`use test`)