diff --git a/pkg/bindinfo/tests/bind_test.go b/pkg/bindinfo/tests/bind_test.go index 3fcb29590ccae..1a103a1a8541d 100644 --- a/pkg/bindinfo/tests/bind_test.go +++ b/pkg/bindinfo/tests/bind_test.go @@ -1117,6 +1117,11 @@ func TestFuzzyBindingHintsWithSourceReturning(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`)