Update tests to utilize ginkgo/v2
This commit updates the import of ginkgo to v2 in all of the tests. Signed-off-by: liornoy <lnoy@redhat.com> Co-authored-by: Sascha Grunert <sgrunert@redhat.com>
This commit is contained in:
@ -24,8 +24,7 @@ import (
|
||||
|
||||
"github.com/containernetworking/plugins/pkg/ns"
|
||||
|
||||
. "github.com/onsi/ginkgo"
|
||||
"github.com/onsi/ginkgo/config"
|
||||
. "github.com/onsi/ginkgo/v2"
|
||||
. "github.com/onsi/gomega"
|
||||
"github.com/onsi/gomega/gbytes"
|
||||
"github.com/onsi/gomega/gexec"
|
||||
@ -34,7 +33,7 @@ import (
|
||||
)
|
||||
|
||||
func TestPortmap(t *testing.T) {
|
||||
rand.Seed(config.GinkgoConfig.RandomSeed)
|
||||
rand.Seed(GinkgoRandomSeed())
|
||||
|
||||
RegisterFailHandler(Fail)
|
||||
RunSpecs(t, "plugins/meta/portmap")
|
||||
|
Reference in New Issue
Block a user