You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Await SNS message publishing and replace queue purge test helper
This commit addresses intermittent failures in system tests related to SNS
message publishing. Adding console.log statements revealed 2 situations
- Test assertions were running before an item ingest message was published
- Calling `purgeQeue` did not appear to actually empty the SNS queue
This commit moves an await call to guarantee that messages are published to SNS
before trying to assert that they have been published and replaces a call to
`purgeQueue` will calling `receiveMessage` in a loop.
0 commit comments