Skip to content

fix flaky SES test #11944

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 27, 2024
Merged

fix flaky SES test #11944

merged 2 commits into from
Nov 27, 2024

Conversation

bentsku
Copy link
Contributor

@bentsku bentsku commented Nov 27, 2024

Motivation

Following #11930, we were sending SES emails via SNS, and it incremented the counter. However, we were snapshotting the initial value to 0.0, which is then sensitive to test run orders and such.

The test needs fixing in AWS, but I've manually run the update snapshot with only the initial part of the test to still validate the proper format of GetSendQuota from AWS.

The behavior of the test is still correctly validated via asserts (not working in AWS, probably because of sandbox account).

Changes

  • transform the initial value of the usage counter to avoid sensitivity to test order

@bentsku bentsku added aws:ses Amazon Simple Email Service semver: patch Non-breaking changes which can be included in patch releases labels Nov 27, 2024
@bentsku bentsku requested a review from alexrashed November 27, 2024 13:07
@bentsku bentsku self-assigned this Nov 27, 2024
Copy link
Member

@alexrashed alexrashed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch! Thanks for jumping on this! 🚀

Copy link

LocalStack Community integration with Pro

  2 files    2 suites   2m 37s ⏱️
144 tests 139 ✅ 5 💤 0 ❌
146 runs  139 ✅ 7 💤 0 ❌

Results for commit 2a945e5.

@bentsku bentsku merged commit 090230b into master Nov 27, 2024
39 checks passed
@bentsku bentsku deleted the fix-flaky-ses-test branch November 27, 2024 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws:ses Amazon Simple Email Service semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants