Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix:
Eventually()
missing Should()
statement
The linter enforces the usage of `Should()` statements when a `Eventually` check is used. Also, `DeferCleanup` has been dropped in favor of `defer`. The [`resetToDefaultConfig()` ](https://github.com/kubevirt/kubevirt/blob/cb1b6e53540189d6664c4a8c126ab6e0a84ff8c4/tests/utils.go#L1842) is called before the test `DeferCleanup`, creating the following error: "resource & config versions (5548 and 4736 respectively) are not as expected. component: \"virt-handler\", pod: \"virt-handler-zdv7f\" " This is because the `virt-handler` will not be ready (intentionally for the purposes of the test), and the `resetToDefaultConfig()` will force the `virt-handler` to reconcile, which will fail, but the `virt-handler` `resourceVersion` will be updated. Therefore, the Kubevirt object will be out of sync. Signed-off-by: Javier Cano Cano <jcanocan@redhat.com>
- Loading branch information