diff --git a/okta/provider_test.go b/okta/provider_test.go index 664af4088..4b1b2e54f 100644 --- a/okta/provider_test.go +++ b/okta/provider_test.go @@ -748,6 +748,9 @@ type vcrManager struct { } func skipVCRTest(t *testing.T) bool { - t.Skipf("test %q is not VCR compatible", t.Name()) - return os.Getenv("OKTA_VCR_TF_ACC") != "" + skip := os.Getenv("OKTA_VCR_TF_ACC") != "" + if skip { + t.Skipf("test %q is not VCR compatible", t.Name()) + } + return skip }