From ee1dd207fe6c4aafbe7f9435c6be50cd18cb41fe Mon Sep 17 00:00:00 2001 From: Vitaliy Guschin Date: Tue, 2 Apr 2024 17:34:16 +0300 Subject: [PATCH] Refactor 'parallel' package. Signed-off-by: Vitaliy Guschin --- go.mod | 2 +- go.sum | 4 ++-- main_test.go | 11 ++++++++++- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 3510f3e..306c42f 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/networkservicemesh/integration-k8s-aws go 1.20 require ( - github.com/networkservicemesh/integration-tests v0.0.0-20240227135027-7ac3a81dd853 + github.com/networkservicemesh/integration-tests v0.0.0-20240402140429-3326f40ee5f5 github.com/stretchr/testify v1.8.4 ) diff --git a/go.sum b/go.sum index a6de763..5fd5cb7 100644 --- a/go.sum +++ b/go.sum @@ -14,8 +14,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/networkservicemesh/gotestmd v0.0.0-20220628095933-eabbdc09e0dc h1:1L/OisEFsOyhwaqeJpYmM1nlJ2dBusUMiszPDBlUip0= github.com/networkservicemesh/gotestmd v0.0.0-20220628095933-eabbdc09e0dc/go.mod h1:8EWnekTRNX+NxBdTFE24WqUoM7SgJHbiafDBrIIdOmQ= -github.com/networkservicemesh/integration-tests v0.0.0-20240227135027-7ac3a81dd853 h1:qhZj8zv5bt/+a8Q9T1Zlj8BzGqNt0GVBG7rvXqxTNfk= -github.com/networkservicemesh/integration-tests v0.0.0-20240227135027-7ac3a81dd853/go.mod h1:WLpOEldvahZQkJSdU3kspIS4tB1x1hDnWP08B/nCTjM= +github.com/networkservicemesh/integration-tests v0.0.0-20240402140429-3326f40ee5f5 h1:EnChDRay7K5L1WQ2++IJ8EKHVGwh4yd8hFC84OVLtIw= +github.com/networkservicemesh/integration-tests v0.0.0-20240402140429-3326f40ee5f5/go.mod h1:cT5l2gQd8TEjjgoxLEEF9oR2DB4AH/KlLQEeNvba4U4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= diff --git a/main_test.go b/main_test.go index fa094e5..f4bf30b 100644 --- a/main_test.go +++ b/main_test.go @@ -2,6 +2,8 @@ // // Copyright (c) 2023 Cisco and/or its affiliates. // +// Copyright (c) 2024 Pragmagic Inc. and/or its affiliates. +// // SPDX-License-Identifier: Apache-2.0 // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -33,7 +35,14 @@ import ( ) func TestRunFeatureSuite(t *testing.T) { - parallel.Run(t, new(features.Suite), "TestScale_from_zero", "TestVl3_dns", "TestVl3_scale_from_zero", "TestNse_composition", "TestSelect_forwarder") + featuresSuite := new(features.Suite) + parallel.Run(t, featuresSuite, + parallel.WithRunningTestsSynchronously( + featuresSuite.TestScale_from_zero, + featuresSuite.TestNse_composition, + featuresSuite.TestSelect_forwarder, + featuresSuite.TestVl3_dns, + featuresSuite.TestVl3_scale_from_zero)) } func TestRunBasicSuite(t *testing.T) {