diff --git a/internal/service/lakeformation/lf_tag_test.go b/internal/service/lakeformation/lf_tag_test.go index a99b05cdb964..585901792c76 100644 --- a/internal/service/lakeformation/lf_tag_test.go +++ b/internal/service/lakeformation/lf_tag_test.go @@ -130,7 +130,7 @@ func testAccCheckAWSLakeFormationLFTagsDestroy(s *terraform.State) error { continue } // If the lake formation admin has been revoked, there will be access denied instead of entity not found - if tfawserr.ErrCodeEquals(err, lakeformation.ErrCodeEntityNotFoundException) { + if tfawserr.ErrCodeEquals(err, lakeformation.ErrCodeAccessDeniedException) { continue } return err