Change min version required for plan optimization
This commit is contained in:
parent
9cc39edb67
commit
b7b050cdd1
|
@ -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)
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue