@@ -73,7 +73,7 @@ func TestDiffSystemAllocsForNode_Sysbatch_terminal(t *testing.T) {
7373 }
7474
7575 nr := NewNodeReconciler (nil )
76- diff := nr .computeForNode (job , "node1" , eligible , nil , tainted , nil , required , live , terminal , true )
76+ diff := nr .computeForNode (job , "node1" , eligible , nil , tainted , required , live , terminal , true )
7777
7878 assertDiffCount (t , diffResultCount {ignore : 1 , place : 1 }, diff )
7979 if len (diff .Ignore ) > 0 {
@@ -96,7 +96,7 @@ func TestDiffSystemAllocsForNode_Sysbatch_terminal(t *testing.T) {
9696 }
9797
9898 nr := NewNodeReconciler (nil )
99- diff := nr .computeForNode (job , "node1" , eligible , nil , tainted , nil , required , live , terminal , true )
99+ diff := nr .computeForNode (job , "node1" , eligible , nil , tainted , required , live , terminal , true )
100100 assertDiffCount (t , diffResultCount {update : 1 , place : 1 }, diff )
101101 })
102102
@@ -160,7 +160,7 @@ func TestDiffSystemAllocsForNode_Placements(t *testing.T) {
160160 nr := NewNodeReconciler (nil )
161161 diff := nr .computeForNode (
162162 job , tc .nodeID , eligible , nil ,
163- tainted , nil , required , allocsForNode , terminal , true )
163+ tainted , required , allocsForNode , terminal , true )
164164
165165 assertDiffCount (t , tc .expected , diff )
166166 })
@@ -218,7 +218,7 @@ func TestDiffSystemAllocsForNode_Stops(t *testing.T) {
218218
219219 nr := NewNodeReconciler (nil )
220220 diff := nr .computeForNode (
221- job , node .ID , eligible , nil , tainted , nil , required , allocs , terminal , true )
221+ job , node .ID , eligible , nil , tainted , required , allocs , terminal , true )
222222
223223 assertDiffCount (t , diffResultCount {ignore : 1 , stop : 1 , update : 1 }, diff )
224224 if len (diff .Update ) > 0 {
@@ -288,7 +288,7 @@ func TestDiffSystemAllocsForNode_IneligibleNode(t *testing.T) {
288288
289289 nr := NewNodeReconciler (nil )
290290 diff := nr .computeForNode (
291- job , tc .nodeID , eligible , ineligible , tainted , nil ,
291+ job , tc .nodeID , eligible , ineligible , tainted ,
292292 required , []* structs.Allocation {alloc }, terminal , true ,
293293 )
294294 assertDiffCount (t , tc .expect , diff )
@@ -346,7 +346,7 @@ func TestDiffSystemAllocsForNode_DrainingNode(t *testing.T) {
346346 nr := NewNodeReconciler (nil )
347347 diff := nr .computeForNode (
348348 job , drainNode .ID , map [string ]* structs.Node {}, nil ,
349- tainted , nil , required , allocs , terminal , true )
349+ tainted , required , allocs , terminal , true )
350350
351351 assertDiffCount (t , diffResultCount {migrate : 1 , ignore : 1 }, diff )
352352 if len (diff .Migrate ) > 0 {
@@ -398,7 +398,7 @@ func TestDiffSystemAllocsForNode_LostNode(t *testing.T) {
398398 nr := NewNodeReconciler (nil )
399399 diff := nr .computeForNode (
400400 job , deadNode .ID , map [string ]* structs.Node {}, nil ,
401- tainted , nil , required , allocs , terminal , true )
401+ tainted , required , allocs , terminal , true )
402402
403403 assertDiffCount (t , diffResultCount {lost : 2 }, diff )
404404 if len (diff .Migrate ) > 0 {
@@ -523,7 +523,7 @@ func TestDiffSystemAllocsForNode_DisconnectedNode(t *testing.T) {
523523
524524 nr := NewNodeReconciler (nil )
525525 got := nr .computeForNode (
526- job , tc .node .ID , eligibleNodes , nil , taintedNodes , nil ,
526+ job , tc .node .ID , eligibleNodes , nil , taintedNodes ,
527527 required , []* structs.Allocation {alloc }, terminal , true ,
528528 )
529529 assertDiffCount (t , tc .expect , got )
@@ -611,7 +611,7 @@ func TestDiffSystemAllocs(t *testing.T) {
611611 }
612612
613613 nr := NewNodeReconciler (nil )
614- diff := nr .Compute (job , nodes , nil , tainted , nil , allocs , terminal , true )
614+ diff := nr .Compute (job , nodes , nil , tainted , allocs , terminal , true )
615615 assertDiffCount (t , diffResultCount {
616616 update : 1 , ignore : 1 , migrate : 1 , lost : 1 , place : 6 }, diff )
617617
@@ -766,7 +766,7 @@ func TestNodeDeployments(t *testing.T) {
766766 for _ , tc := range testCases {
767767 t .Run (tc .name , func (t * testing.T ) {
768768 nr := NewNodeReconciler (tc .existingDeployment )
769- nr .Compute (tc .job , nodes , nil , nil , nil , tc .liveAllocs , tc .terminalAllocs , true )
769+ nr .Compute (tc .job , nodes , nil , nil , tc .liveAllocs , tc .terminalAllocs , true )
770770 if tc .newDeployment {
771771 must .NotNil (t , nr .DeploymentCurrent , must .Sprintf ("expected a non-nil deployment" ))
772772 must .Eq (t , nr .DeploymentCurrent .Status , tc .expectedNewDeploymentStatus )
0 commit comments