Use max Replica count instead of hardcoded value

This commit is contained in:
Caleb Woodbine 2020-03-02 13:46:41 +13:00
parent 2622a6cace
commit e5e3037868

View File

@ -179,7 +179,7 @@ var _ = SIGDescribe("ReplicationController", func() {
rcScalePatchPayload, err := json.Marshal(autoscalingv1.Scale{ rcScalePatchPayload, err := json.Marshal(autoscalingv1.Scale{
Spec: autoscalingv1.ScaleSpec{ Spec: autoscalingv1.ScaleSpec{
Replicas: 2, Replicas: testRcMaxReplicaCount,
}, },
}) })
framework.ExpectNoError(err, "Failed to marshal json of replicationcontroller label patch") framework.ExpectNoError(err, "Failed to marshal json of replicationcontroller label patch")