Commit 4b45bc1f authored by Michail Kargakis's avatar Michail Kargakis

test: use low terminationGracePeriod for deployment test

parent 4b5c74ee
...@@ -605,7 +605,7 @@ func testPausedDeployment(f *framework.Framework) { ...@@ -605,7 +605,7 @@ func testPausedDeployment(f *framework.Framework) {
podLabels := map[string]string{"name": nginxImageName} podLabels := map[string]string{"name": nginxImageName}
d := newDeployment(deploymentName, 1, podLabels, nginxImageName, nginxImage, extensions.RollingUpdateDeploymentStrategyType, nil) d := newDeployment(deploymentName, 1, podLabels, nginxImageName, nginxImage, extensions.RollingUpdateDeploymentStrategyType, nil)
d.Spec.Paused = true d.Spec.Paused = true
tgps := int64(20) tgps := int64(1)
d.Spec.Template.Spec.TerminationGracePeriodSeconds = &tgps d.Spec.Template.Spec.TerminationGracePeriodSeconds = &tgps
framework.Logf("Creating paused deployment %s", deploymentName) framework.Logf("Creating paused deployment %s", deploymentName)
_, err := c.Extensions().Deployments(ns).Create(d) _, err := c.Extensions().Deployments(ns).Create(d)
...@@ -662,7 +662,7 @@ func testPausedDeployment(f *framework.Framework) { ...@@ -662,7 +662,7 @@ func testPausedDeployment(f *framework.Framework) {
// Update the deployment template - the new replicaset should stay the same // Update the deployment template - the new replicaset should stay the same
framework.Logf("Updating paused deployment %q", deploymentName) framework.Logf("Updating paused deployment %q", deploymentName)
newTGPS := int64(40) newTGPS := int64(0)
deployment, err = framework.UpdateDeploymentWithRetries(c, ns, d.Name, func(update *extensions.Deployment) { deployment, err = framework.UpdateDeploymentWithRetries(c, ns, d.Name, func(update *extensions.Deployment) {
update.Spec.Template.Spec.TerminationGracePeriodSeconds = &newTGPS update.Spec.Template.Spec.TerminationGracePeriodSeconds = &newTGPS
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment