diff --git a/pagerdutyplugin/resource_pagerduty_team_test.go b/pagerdutyplugin/resource_pagerduty_team_test.go index 7f76812db..4acaab305 100644 --- a/pagerdutyplugin/resource_pagerduty_team_test.go +++ b/pagerdutyplugin/resource_pagerduty_team_test.go @@ -176,6 +176,10 @@ func testAccCheckPagerDutyTeamDestroy(s *terraform.State) error { return nil } +// major problem: this just pull a random resource. +// it goes through all the resources in the map. when it eventually fails it just returns the last (or first?) element +// since this is an acceptance test, this never runs on pull requests +// all acceptance tests are private func testAccCheckPagerDutyTeamExists(n string) resource.TestCheckFunc { return func(s *terraform.State) error { client, _ := testAccProvider.Meta().(*Config).Client()