diff --git a/br/pkg/version/version_test.go b/br/pkg/version/version_test.go index c086375b2118e..4d0130ea8be8d 100644 --- a/br/pkg/version/version_test.go +++ b/br/pkg/version/version_test.go @@ -280,6 +280,15 @@ func TestCheckClusterVersion(t *testing.T) { require.True(t, variable.EnableConcurrentDDL.Load()) } + { + mock.getAllStores = func() []*metapb.Store { + return []*metapb.Store{{Version: "v6.2.0-alpha"}} + } + err := CheckClusterVersion(context.Background(), &mock, CheckVersionForDDL) + require.NoError(t, err) + require.True(t, variable.EnableConcurrentDDL.Load()) + } + { mock.getAllStores = func() []*metapb.Store { return []*metapb.Store{{Version: "v6.1.0"}}