tests, sriov: Remove BeforeAll
BeforeAll is deprecated and has no teardown equivalent (using it may leaks resources).
@@ -671,7 +671,7 @@ var _ = Describe("[Serial]SRIOV", func() {
return createNetworkAttachmentDefinition(virtClient, networkName, namespace, sriovNad)
}
- tests.BeforeAll(func() {
+ BeforeEach(func() {
virtClient, err = kubecli.GetKubevirtClient()
util.PanicOnError(err)
