Skip to content

Commit 275c68c

Browse files
authored
Merge pull request #1461 from hashicorp/brandonc/remove_skip_date
Remove skipUnlessAfterDate skips
2 parents 842b99b + a0bd143 commit 275c68c

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

internal/provider/provider_test.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,11 @@ func testAccPreCheck(t *testing.T) {
178178
}
179179
}
180180

181+
func TestSkipUnlessAfterDate(t *testing.T) {
182+
skipUnlessAfterDate(t, time.Date(2199, 1, 1, 0, 0, 0, 0, time.UTC))
183+
t.Fatal("This test should have been skipped (Unless it's 2199!)")
184+
}
185+
181186
func TestConfigureEnvOrganization(t *testing.T) {
182187
rInt := rand.New(rand.NewSource(time.Now().UnixNano())).Int()
183188
originalTFEOrganization := os.Getenv("TFE_ORGANIZATION")
@@ -213,8 +218,6 @@ func TestConfigureEnvOrganization(t *testing.T) {
213218
// The TFE Provider tests use these environment variables, which are set in the
214219
// GitHub Action workflow file .github/workflows/ci.yml.
215220
func testAccGithubPreCheck(t *testing.T) {
216-
skipUnlessAfterDate(t, time.Date(2024, 9, 1, 0, 0, 0, 0, time.UTC))
217-
218221
if envGithubToken == "" {
219222
t.Skip("Please set GITHUB_TOKEN to run this test")
220223
}

internal/provider/resource_tfe_registry_module_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,8 +1072,6 @@ func testAccCheckTFERegistryModuleDestroy(s *terraform.State) error {
10721072
}
10731073

10741074
func testAccPreCheckTFERegistryModule(t *testing.T) {
1075-
skipUnlessAfterDate(t, time.Date(2024, 9, 1, 0, 0, 0, 0, time.UTC))
1076-
10771075
if envGithubToken == "" {
10781076
t.Skip("Please set GITHUB_TOKEN to run this test")
10791077
}

internal/provider/resource_tfe_workspace_run_test.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ import (
1616
)
1717

1818
func TestAccTFEWorkspaceRun_withApplyOnlyBlock(t *testing.T) {
19-
// Currently, tflocal cloud box is incapable of running terraform more than once at a time
20-
// due to the use of the raw_exec nomad driver.
21-
skipUnlessAfterDate(t, time.Date(2025, 5, 1, 0, 0, 0, 0, time.UTC))
22-
2319
rInt := rand.New(rand.NewSource(time.Now().UnixNano())).Int()
2420

2521
tfeClient, err := getClientUsingEnv()
@@ -69,10 +65,6 @@ func TestAccTFEWorkspaceRun_withApplyOnlyBlock(t *testing.T) {
6965
}
7066

7167
func TestAccTFEWorkspaceRun_withBothApplyAndDestroyBlocks(t *testing.T) {
72-
// Currently, tflocal cloud box is incapable of running terraform more than once at a time
73-
// due to the use of the raw_exec nomad driver.
74-
skipUnlessAfterDate(t, time.Date(2025, 5, 1, 0, 0, 0, 0, time.UTC))
75-
7668
rInt := rand.New(rand.NewSource(time.Now().UnixNano())).Int()
7769

7870
tfeClient, err := getClientUsingEnv()

0 commit comments

Comments
 (0)