74daa1da64
Signed-off-by: Monis Khan <mok@vmware.com>
15 lines
376 B
Go
15 lines
376 B
Go
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package testlib
|
|
|
|
import "testing"
|
|
|
|
// 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")
|
|
}
|
|
}
|