Skip to content

Commit 5d98a79

Browse files
committed
Fixes TestAccTFEPolicySet_pinnedPolicyRuntimeVersion for TFE tests
1 parent ef89e32 commit 5d98a79

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/provider/resource_tfe_policy_set_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ func TestAccTFEPolicySet_pinnedPolicyRuntimeVersion(t *testing.T) {
6161
sha := genSentinelSha(t, "secret", "data")
6262
version := genSafeRandomSentinelVersion()
6363

64-
adminClient := testAdminClient(t, versionMaintenanceAdmin)
64+
adminClient := tfeClient
65+
if !enterpriseEnabled() {
66+
adminClient = testAdminClient(t, versionMaintenanceAdmin)
67+
}
6568

6669
opts := tfe.AdminSentinelVersionCreateOptions{
6770
Version: version,

0 commit comments

Comments
 (0)