diff --git a/internal/service/apigateway/rest_api_test.go b/internal/service/apigateway/rest_api_test.go index 074fe8fe55e..6b5cbd0acbd 100644 --- a/internal/service/apigateway/rest_api_test.go +++ b/internal/service/apigateway/rest_api_test.go @@ -2703,8 +2703,7 @@ func TestAccAPIGatewayRestAPI_PolicyDiffSuppress(t *testing.T) { testAccCheckRESTAPIExists(ctx, resourceName, &conf), resource.TestCheckResourceAttrSet(resourceName, names.AttrPolicy), ), - PlanOnly: true, - ExpectError: nil, // Expect no changes in plan + PlanOnly: true, // Expect no changes in plan }, { // Test with ARN containing specific region and account ID - verify no differences are detected @@ -2713,8 +2712,7 @@ func TestAccAPIGatewayRestAPI_PolicyDiffSuppress(t *testing.T) { testAccCheckRESTAPIExists(ctx, resourceName, &conf), resource.TestCheckResourceAttrSet(resourceName, names.AttrPolicy), ), - PlanOnly: true, - ExpectError: nil, // Expect no changes in plan + PlanOnly: true, // Expect no changes in plan }, { // Test with different app_id - should detect differences