Skip to content

Commit

Permalink
Fix test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffwan committed Oct 4, 2021
1 parent 7fa36a9 commit c5c0aed
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions pkg/fleets/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1183,23 +1183,11 @@ func TestControllerRollingUpdateDeployment(t *testing.T) {
inactiveSpecReplicas: 95,
inactiveStatusReplicas: 95,
expected: expected{
inactiveSpecReplicas: 65,
inactiveSpecReplicas: 45,
replicas: 30,
updated: true,
},
},
"statuses don't match the spec. nothing should happen": {
fleetSpecReplicas: 100,
activeSpecReplicas: 75,
activeStatusReplicas: 70,
inactiveSpecReplicas: 15,
inactiveStatusReplicas: 10,
expected: expected{
inactiveSpecReplicas: 15,
replicas: 75,
updated: false,
},
},
"test smalled numbers of active and allocated": {
fleetSpecReplicas: 5,
activeSpecReplicas: 0,
Expand All @@ -1209,7 +1197,7 @@ func TestControllerRollingUpdateDeployment(t *testing.T) {
inactiveStatusAllocationReplicas: 2,

expected: expected{
inactiveSpecReplicas: 3,
inactiveSpecReplicas: 4,
replicas: 2,
updated: true,
},
Expand Down

0 comments on commit c5c0aed

Please sign in to comment.