Skip to content

Commit

Permalink
Change min version required for plan optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
arshjohar committed Apr 24, 2019
1 parent ab2718c commit 23bc1f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nomad/plan_apply_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion nomad/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion nomad/worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 23bc1f2

Please sign in to comment.