Skip to content

Conversation

@Rian-Ismael
Copy link
Contributor

@Rian-Ismael Rian-Ismael commented Jul 6, 2025

Replaces manual try/catch blocks with assertThrows to improve readability and align with modern testing practices.
Using assertThrows clarifies the test intent, eliminates unnecessary control flow, and ensures that exception validation is concise and consistent.
This enhances test maintainability and makes failures easier to debug.


Thank you for contributing to JanusGraph!

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

For all changes:

  • Has your PR been rebased against the latest commit within the target branch (typically master)?

li-boxuan

This comment was marked as outdated.

Copy link
Member

@li-boxuan li-boxuan left a comment

Choose a reason for hiding this comment

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

See my comment above ^^

@Rian-Ismael Rian-Ismael requested a review from li-boxuan July 7, 2025 07:47
@li-boxuan
Copy link
Member

Hi @Rian-Ismael , please address the comment here and then request for another round of review

@Rian-Ismael
Copy link
Contributor Author

Hi @Rian-Ismael , please address the comment here and then request for another round of review

Hi @li-boxuan, thanks for the review!
I’ve addressed your comment and force-pushed the corrected commit.
Sorry for any confusion earlier — I had to reset the branch to ensure the changes were clean.
Let me know if there’s anything else to adjust!

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.

2 participants