Skip to content

Commit b92bd08

Browse files
committed
Refactor to use constant, clarify comment
1 parent 6fd69b7 commit b92bd08

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/provider/job_resource_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ func TestAccAAPJob_UpdateWithNewInventoryId(t *testing.T) {
344344
resource.TestMatchResourceAttr(resourceName, "url", regexp.MustCompile("^/api(/controller)?/v2/jobs/[0-9]*/$")),
345345
testAccCheckJobUpdate(&jobURLBefore, true),
346346
// Wait for the job to finish so the inventory can be deleted
347-
testAccCheckJobPause("aap_job.test"),
347+
testAccCheckJobPause(resourceName),
348348
),
349349
},
350350
},
@@ -476,10 +476,10 @@ func TestAccAAPJob_disappears(t *testing.T) {
476476
resource.TestMatchResourceAttr(resourceName, "job_type", regexp.MustCompile("^(run|check)$")),
477477
resource.TestMatchResourceAttr(resourceName, "url", regexp.MustCompile("^/api(/controller)?/v2/jobs/[0-9]*/$")),
478478
// Wait for the job to finish so the inventory can be deleted
479-
testAccCheckJobPause("aap_job.test"),
479+
testAccCheckJobPause(resourceName),
480480
),
481481
},
482-
// Confirm the job is finished, then delete directly via API, outside of terraform.
482+
// Confirm the job is finished (fewer options in status), then delete directly via API, outside of terraform.
483483
{
484484
Config: testAccBasicJob(jobTemplateID),
485485
Check: resource.ComposeAggregateTestCheckFunc(

0 commit comments

Comments
 (0)