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

Reset logger to prevent swallowing exceptions #1309

Merged
merged 1 commit into from
Feb 29, 2024
Merged

Conversation

gamepro65
Copy link
Collaborator

Update sessionParams to include the new logger instance

Resolves: #1279

}
}

@get:Rule val ignored: RuleChain = RuleChain.outerRule(expectExceptionRule).around(paparazzi)
Copy link
Collaborator Author

@gamepro65 gamepro65 Feb 29, 2024

Choose a reason for hiding this comment

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

Because Paparazzi throws exceptions after calling base.evaluate() we unfortunately cannot use assertThrows nor @Test(expected = ...) as they execute within Paparazzi's Statement. Instead we have to wrap Paparazzi's rule to catch its exceptions, wasn't sure a better way to achieve this.

@gamepro65 gamepro65 merged commit 0b8a85f into master Feb 29, 2024
14 checks passed
@gamepro65 gamepro65 deleted the cdrury/loggerFix branch February 29, 2024 19:58
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.

Second and subsequent tests are falsely succeed if error occur during rendering
3 participants