Skip to content

Commit

Permalink
Swith to capacity.DeepCopy()
Browse files Browse the repository at this point in the history
  • Loading branch information
feiskyer committed Sep 9, 2019
1 parent ec216d7 commit 9215485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e/autoscaling/autoscaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ var _ = Describe("Cluster size autoscaler [Serial][Slow]", func() {

runningQuantity, err := utils.GetAvailableNodeCapacity(cs)
Expect(err).NotTo(HaveOccurred())
emptyQuantity := initNodeCapacity.Copy()
emptyQuantity := initNodeCapacity.DeepCopy()
emptyQuantity.Sub(runningQuantity)

podCount = int(emptyQuantity.MilliValue()/podSize) + 1
Expand Down

0 comments on commit 9215485

Please sign in to comment.