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

This PR replaces all expected RuntimeExceptions with TestException. T… #619

Merged
merged 3 commits into from Feb 20, 2024

Conversation

benjamin-confino
Copy link
Contributor

@benjamin-confino benjamin-confino commented Nov 13, 2023

…his is because I saw some genuine RuntimeExceptions causing failures in our build system and if runtime exceptions can appear where they are not expected the wrong runtime exception may appear where a runtime exception is expected

Where a runtime exception is not expected it also updates the error message to include the details of that exception

fixes #620

@eclipse-microprofile-bot
Copy link
Contributor

Can one of the admins verify this patch?

@Azquelt
Copy link
Member

Azquelt commented Nov 14, 2023

I think instances like this should also be updated: https://github.com/eclipse/microprofile-fault-tolerance/pull/619/files#diff-75e65464c0fe1fb4456a2b1d045d03b43dbc7ed637603883d5f8292dccdd5b07L102

This test should expect a TestException on iteration 1,2,3,7,8 and 9. It should fail with a different error (in the surrounding catch block) if another exception is thrown.

…his is because I saw some genuine RuntimeExceptions causing failures in our build system and if runtime exceptions can appear where they are not expected the wrong runtime exception may appear where a runtime exception is expected
Copy link
Member

@Emily-Jiang Emily-Jiang left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@Azquelt Azquelt left a comment

Choose a reason for hiding this comment

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

See comments above.

These are all changes that the autoformatter makes when running the
build.
@Azquelt
Copy link
Member

Azquelt commented Feb 20, 2024

@eclipse-microprofile-bot test this please

@Azquelt
Copy link
Member

Azquelt commented Feb 20, 2024

@eclipse-microprofile-bot test this please

1 similar comment
@Azquelt
Copy link
Member

Azquelt commented Feb 20, 2024

@eclipse-microprofile-bot test this please

@Azquelt Azquelt merged commit 1527c6a into eclipse:main Feb 20, 2024
4 checks passed
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.

The use of expected RuntimeExceptions in the TCK can cause false positives
4 participants