e2e/deployment fail if the second deployment times out

This commit is contained in:
Lang Martin 2019-06-04 14:08:30 -04:00
parent 14b9cae7cb
commit fa09e5d5f4
1 changed files with 3 additions and 1 deletions

View File

@ -55,7 +55,9 @@ func (tc *DeploymentTest) TestDeploymentAutoPromote(f *framework.F) {
}
}
return false, nil
}, func(e error) {})
}, func(e error) {
t.Error("missing update deployment")
})
// Deployment is auto pending the upgrade of "two" which has a longer time to health
e2eutil.WaitForDeployment(t, nomadClient, deploy.ID, run, structs.DeploymentStatusDescriptionRunningAutoPromotion)