Skip to content

Commit

Permalink
upadte test
Browse files Browse the repository at this point in the history
  • Loading branch information
3pointer committed Jul 22, 2022
1 parent b31f628 commit 175fd85
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions br/pkg/version/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"}}
Expand Down

0 comments on commit 175fd85

Please sign in to comment.