diff --git a/thousandeyes/provider_test.go b/thousandeyes/provider_test.go index dedd222..efff1c8 100644 --- a/thousandeyes/provider_test.go +++ b/thousandeyes/provider_test.go @@ -60,7 +60,7 @@ func testAccCheckResourceDestroy(resources []ResourceType, s *terraform.State) e if err != nil { return err } - _, err = testClient.GetAlertRule(id) + _, err = resource.GetResource(id) if err == nil { return fmt.Errorf("%s with id %s still exists", resource.ResourceName, rs.Primary.ID) }