Skip to content

Commit

Permalink
Fixing acceptance test issue with AccessDeniedException
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Ayers authored and danielcmessias committed Apr 20, 2022
1 parent 0b21be9 commit 78e37d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/lakeformation/lf_tag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 78e37d0

Please sign in to comment.