don't assert error inside goroutines

Change-Id: Ifed741d1973e96063378620daf7b8b22647bc2fb
This commit is contained in:
Antonio Ojea 2022-12-11 15:34:17 +00:00
parent 2e6d3393f7
commit 2956bb39a1

View File

@ -319,9 +319,13 @@ var _ = common.SIGDescribe("Loadbalancing: L7", func() {
framework.ExpectNoError(err)
err = wait.Poll(10*time.Second, propagationTimeout, func() (bool, error) {
res, err := jig.GetDistinctResponseFromIngress()
framework.ExpectNoError(err)
if err != nil {
return false, err
}
deploy, err := f.ClientSet.AppsV1().Deployments(ns).Get(context.TODO(), name, metav1.GetOptions{})
framework.ExpectNoError(err)
if err != nil {
return false, err
}
if int(deploy.Status.UpdatedReplicas) == replicas {
if res.Len() == replicas {
return true, nil