Merge pull request #21726 from janetkuo/log-on-timeout

Auto commit by PR queue bot
This commit is contained in:
k8s-merge-robot
2016-02-23 04:16:49 -08:00
2 changed files with 22 additions and 15 deletions

View File

@@ -380,11 +380,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.