Change min version required for plan optimization

This commit is contained in:
Arshneet Singh 2019-04-24 11:01:59 -07:00
parent 9cc39edb67
commit b7b050cdd1
3 changed files with 3 additions and 3 deletions

View File

@ -235,7 +235,7 @@ func TestPlanApply_applyPlan(t *testing.T) {
func TestPlanApply_applyPlanWithNormalizedAllocs(t *testing.T) {
t.Parallel()
s1 := TestServer(t, func(c *Config) {
c.Build = "0.9.1"
c.Build = "0.9.2"
})
defer s1.Shutdown()
testutil.WaitForLeader(t, s1.RPC)

View File

@ -17,7 +17,7 @@ import (
// MinVersionPlanNormalization is the minimum version to support the
// normalization of Plan in SubmitPlan, and the denormalization raft log entry committed
// in ApplyPlanResultsRequest
var MinVersionPlanNormalization = version.Must(version.NewVersion("0.9.1"))
var MinVersionPlanNormalization = version.Must(version.NewVersion("0.9.2"))
// ensurePath is used to make sure a path exists
func ensurePath(path string, dir bool) error {

View File

@ -396,7 +396,7 @@ func TestWorker_SubmitPlanNormalizedAllocations(t *testing.T) {
s1 := TestServer(t, func(c *Config) {
c.NumSchedulers = 0
c.EnabledSchedulers = []string{structs.JobTypeService}
c.Build = "0.9.1"
c.Build = "0.9.2"
})
defer s1.Shutdown()
testutil.WaitForLeader(t, s1.RPC)