2020-09-16 14:19:51 +00:00
|
|
|
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
2020-08-07 01:44:14 +00:00
|
|
|
|
2021-06-22 15:23:19 +00:00
|
|
|
package testlib
|
2020-08-07 01:44:14 +00:00
|
|
|
|
|
|
|
import "testing"
|
|
|
|
|
2021-08-25 19:34:33 +00:00
|
|
|
// skipUnlessIntegration skips the current test if `-short` has been passed to `go test`.
|
|
|
|
func skipUnlessIntegration(t *testing.T) {
|
2020-08-07 01:44:14 +00:00
|
|
|
t.Helper()
|
|
|
|
if testing.Short() {
|
|
|
|
t.Skip("skipping integration test because of '-short' flag")
|
|
|
|
}
|
|
|
|
}
|