mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 16:06:51 +00:00
Fix swallowed errors in RS and deployment tests
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user