test/integration: run parallel tests concurrently with serial tests

Signed-off-by: Monis Khan <mok@vmware.com>
This commit is contained in:
Monis Khan
2021-08-25 15:34:33 -04:00
parent 475da05185
commit 74daa1da64
14 changed files with 132 additions and 28 deletions

View File

@@ -120,7 +120,7 @@ func IntegrationEnv(t *testing.T) *TestEnv {
}
t.Helper()
SkipUnlessIntegration(t)
skipUnlessIntegration(t)
capabilitiesDescriptionYAML := os.Getenv("PINNIPED_TEST_CLUSTER_CAPABILITY_YAML")
capabilitiesDescriptionFile := os.Getenv("PINNIPED_TEST_CLUSTER_CAPABILITY_FILE")

View File

@@ -5,8 +5,8 @@ package testlib
import "testing"
// SkipUnlessIntegration skips the current test if `-short` has been passed to `go test`.
func SkipUnlessIntegration(t *testing.T) {
// skipUnlessIntegration skips the current test if `-short` has been passed to `go test`.
func skipUnlessIntegration(t *testing.T) {
t.Helper()
if testing.Short() {
t.Skip("skipping integration test because of '-short' flag")