Skip to content
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

test(ses): fix 1973, unskip log test #2049

Merged
merged 2 commits into from
Feb 12, 2024

Conversation

erights
Copy link
Contributor

@erights erights commented Feb 10, 2024

closes: #1973
refs: #XXXX

Description

Previously, throwsAndLogs would only support testing against a literal golden. But for testing the initial-removal-log-messages, this was too fragile, since new engines might have added new properties whose removal would general additional initial-removal-log-messages. This PR enable the caller to provide an alternative compare function. That one test then uses this flexibility to tolerate additional warnings interspersed between the golden warnings it looks for.

Security Considerations

none

Scaling Considerations

none

Documentation Considerations

none

Testing Considerations

The whole point. This enables us to turn an annoying test.skip back into the needed test.

Compatibility Considerations

Enables the test to remain compatible with benign future engine versions.

Upgrade Considerations

none.

Nothing breaking.
No news updates warranted.

  • Includes *BREAKING*: in the commit message with migration instructions for any breaking change.
  • Updates NEWS.md for user-facing changes.

@erights erights self-assigned this Feb 10, 2024
@erights erights force-pushed the markm-1973-tolerate-extra-warnings branch from 71da02a to 4baea6f Compare February 10, 2024 02:17
@erights erights marked this pull request as ready for review February 11, 2024 19:23
Copy link
Contributor

@dckc dckc left a comment

Choose a reason for hiding this comment

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

a couple suggestions at your discretion

packages/ses/test/error/test-permit-removal-warnings.js Outdated Show resolved Hide resolved
packages/ses/test/error/test-permit-removal-warnings.js Outdated Show resolved Hide resolved
@erights erights enabled auto-merge (squash) February 12, 2024 17:27
@erights erights merged commit 6b088eb into master Feb 12, 2024
14 checks passed
@erights erights deleted the markm-1973-tolerate-extra-warnings branch February 12, 2024 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test of cleanup removal messages used a golden that is too fragile.
2 participants