Skip to content

Commit

Permalink
I don't know why this was changed
Browse files Browse the repository at this point in the history
  • Loading branch information
annawinkler committed Jun 6, 2022
1 parent 913d0e3 commit f172135
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions helper_test.go
Expand Up @@ -745,17 +745,17 @@ func createRegistryModuleWithVersion(t *testing.T, client *Client, org *Organiza
}

func createRunTask(t *testing.T, client *Client, org *Organization) (*RunTask, func()) {
runTaskURL := os.Getenv("TFC_RUN_TASK_URL")
if runTaskURL == "" {
t.Error("Cannot create a run task with an empty URL. You must set TFC_RUN_TASK_URL for run task related tests.")
}

var orgCleanup func()

if org == nil {
org, orgCleanup = createOrganization(t, client)
}

runTaskURL := os.Getenv("TFC_RUN_TASK_URL")
if runTaskURL == "" {
t.Error("Cannot create a run task with an empty URL. You must set TFC_RUN_TASK_URL for run task related tests.")
}

ctx := context.Background()
r, err := client.RunTasks.Create(ctx, org.Name, RunTaskCreateOptions{
Name: "tst-" + randomString(t),
Expand Down

0 comments on commit f172135

Please sign in to comment.