Fix swallowed errors in RS and deployment tests

This commit is contained in:
Maciej Szulik 2017-06-29 13:43:24 +02:00
parent 68a722155b
commit f08f504a7e
No known key found for this signature in database
GPG Key ID: F15E55D276FA84C4

View File

@ -413,8 +413,8 @@ var _ = SIGDescribe("Garbage collector", func() {
return len(rsList.Items) > 0, nil
})
if err == wait.ErrWaitTimeout {
err = fmt.Errorf("Failed to wait for the Deployment to create some ReplicaSet: %v", err)
if err != nil {
framework.Failf("Failed to wait for the Deployment to create some ReplicaSet: %v", err)
}
By("delete the deployment")
@ -464,8 +464,8 @@ var _ = SIGDescribe("Garbage collector", func() {
return len(rsList.Items) > 0, nil
})
if err == wait.ErrWaitTimeout {
err = fmt.Errorf("Failed to wait for the Deployment to create some ReplicaSet: %v", err)
if err != nil {
framework.Failf("Failed to wait for the Deployment to create some ReplicaSet: %v", err)
}
By("delete the deployment")