2020-08-07 01:44:14 +00:00
|
|
|
/*
|
2020-09-16 14:05:51 +00:00
|
|
|
Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
2020-08-07 01:44:14 +00:00
|
|
|
SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
package library
|
|
|
|
|
|
|
|
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")
|
|
|
|
}
|
|
|
|
}
|