diff --git a/tests/deployments_test.go b/tests/deployments_test.go index 3873049c7..25a6828be 100644 --- a/tests/deployments_test.go +++ b/tests/deployments_test.go @@ -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) }