(aws-sns): Tests fail with: Only root constructs may have an empty name #13121
Labels
@aws-cdk/aws-sns
Related to Amazon Simple Notification Service
guidance
Question that needs advice or information.
needs-triage
This issue or PR still needs to be triaged.
❓ General Issue
I have built a library to use and it works great. I am updating the tests and I am running into an issue that I am not sure if it's a bug or if perhaps there is something I am doing wrong.
When running my tests I am getting this error:
The code in question is:
Basically, I have a string[] that I am using to allow for emails to be subscribed to an SNS Topic. This works fine but for some reason, the tests fail with the error above.
The Question
What is causing this to happen? There is no name to fill for a subscription so I am not sure of how to resolve this failure.
The code works and I am able to deploy with everything working as expected. For some reason, just the tests fail.
Environment
Other information
It needs to be noted, that I am doing the same thing in the code 2 other times and there are no errors thrown for those, just the last one.
The entire file is:
The text was updated successfully, but these errors were encountered: