Skip to content

Commit

Permalink
fix: update deployment after waiting for it to get ready
Browse files Browse the repository at this point in the history
  • Loading branch information
ObiWahn committed Mar 23, 2018
1 parent 6081d4f commit 76f42c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/deployments_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ func deploymentSubTest(t *testing.T, mode api.DeploymentMode, engine api.Storage
}

// Wait for deployment to be ready
if _, err := waitUntilDeployment(deploymentClient, deploymentTemplate.GetName(), k8sNameSpace, deploymentHasState(api.DeploymentStateRunning)); err != nil {
deployment, err = waitUntilDeployment(deploymentClient, deploymentTemplate.GetName(), k8sNameSpace, deploymentHasState(api.DeploymentStateRunning))
if err != nil {
t.Fatalf("Deployment not running in time: %v", err)
}

Expand Down

0 comments on commit 76f42c2

Please sign in to comment.