From ce8a3a0c1e9a6b571d52cf30404d7dde46ce1fe2 Mon Sep 17 00:00:00 2001 From: Ed Santiago Date: Wed, 5 Apr 2023 09:44:23 -0600 Subject: [PATCH] e2e: GinkgoParallelNode() -> ...Process() ...to silence runtime warning: GinkgoParallelNode is deprecated and will be removed in Ginkgo V2. Please use GinkgoParallelProcess instead. Ref: https://github.com/onsi/ginkgo/blob/ver2/docs/MIGRATING_TO_V2.md#renamed-ginkgoparallelnode Signed-off-by: Ed Santiago --- test/e2e/common_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/e2e/common_test.go b/test/e2e/common_test.go index f5a24b75a8..ee3de70ad6 100644 --- a/test/e2e/common_test.go +++ b/test/e2e/common_test.go @@ -431,10 +431,10 @@ func GetPortLock(port string) *lockfile.LockFile { func GetRandomIPAddress() string { // To avoid IP collisions of initialize random seed for random IP addresses rand.Seed(time.Now().UnixNano()) - // Add GinkgoParallelNode() on top of the IP address + // Add GinkgoParallelProcess() on top of the IP address // in case of the same random seed - ip3 := strconv.Itoa(rand.Intn(230) + GinkgoParallelNode()) - ip4 := strconv.Itoa(rand.Intn(230) + GinkgoParallelNode()) + ip3 := strconv.Itoa(rand.Intn(230) + GinkgoParallelProcess()) + ip4 := strconv.Itoa(rand.Intn(230) + GinkgoParallelProcess()) return "10.88." + ip3 + "." + ip4 }