Log deployment, RSes and pods on waitForDeploymentStatus timeout / condition mismatch

This commit is contained in:
Janet Kuo
2016-02-22 17:10:44 -08:00
parent 6cecf2b357
commit 4369a21969
2 changed files with 22 additions and 15 deletions

View File

@@ -366,11 +366,7 @@ func testRecreateDeployment(f *Framework) {
Expect(err).NotTo(HaveOccurred())
defer stopDeployment(c, f.Client, ns, deploymentName)
err = waitForDeploymentStatus(c, ns, deploymentName, replicas, 0, replicas, 0)
if err != nil {
deployment, _ := c.Extensions().Deployments(ns).Get(deploymentName)
Logf("deployment = %+v", deployment)
}
waitForDeploymentStatus(c, ns, deploymentName, replicas, 0, replicas, 0)
Expect(err).NotTo(HaveOccurred())
// Verify that the pods were scaled up and down as expected. We use events to verify that.