Merge pull request #22026 from nikhiljindal/pausedeploymente2e

Fixing paused deployment e2e flake: Delete replica set and its pods as well rather than just deleting the replica set
This commit is contained in:
Brian Grant
2016-02-25 16:10:27 -08:00

View File

@@ -575,7 +575,7 @@ func testPausedDeployment(f *Framework) {
newRS, err := deploymentutil.GetNewReplicaSet(*deployment, c)
Expect(err).NotTo(HaveOccurred())
Expect(c.Extensions().ReplicaSets(ns).Delete(newRS.Name, nil)).NotTo(HaveOccurred())
Expect(DeleteReplicaSet(unversionedClient, ns, newRS.Name)).NotTo(HaveOccurred())
deployment, err = c.Extensions().Deployments(ns).Get(deploymentName)
Expect(err).NotTo(HaveOccurred())