mirror of https://github.com/knative/client.git
e2e: Foreground delete for revisions and services in e2e (#794)
* e2e: Foreground delete for revisions and services in e2e to avoid any race conditions and flakes * Use --wait instead of --no-wait=false
This commit is contained in:
parent
46ecdcc32f
commit
48f4359b24
|
|
@ -131,7 +131,7 @@ func serviceUpdate(r *test.KnRunResultCollector, serviceName string, args ...str
|
|||
}
|
||||
|
||||
func serviceDelete(r *test.KnRunResultCollector, serviceName string) {
|
||||
out := r.KnTest().Kn().Run("service", "delete", serviceName)
|
||||
out := r.KnTest().Kn().Run("service", "delete", "--wait", serviceName)
|
||||
r.AssertNoError(out)
|
||||
assert.Check(r.T(), util.ContainsAll(out.Stdout, "Service", serviceName, "successfully deleted in namespace", r.KnTest().Kn().Namespace()))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ func revisionListWithService(r *test.KnRunResultCollector, serviceNames ...strin
|
|||
}
|
||||
|
||||
func revisionDelete(r *test.KnRunResultCollector, revName string) {
|
||||
out := r.KnTest().Kn().Run("revision", "delete", revName)
|
||||
out := r.KnTest().Kn().Run("revision", "delete", "--wait", revName)
|
||||
assert.Check(r.T(), util.ContainsAll(out.Stdout, "Revision", revName, "deleted", "namespace", r.KnTest().Kn().Namespace()))
|
||||
r.AssertNoError(out)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue