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

suite: fix recoverAndFailOnPanic to report test failure at the right location #1502

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

dolmen
Copy link
Collaborator

@dolmen dolmen commented Nov 1, 2023

Summary

#1501 shows that the panic in the test is reported in suite.go:87 which is the location of the failOnPanic function. This is due to missing calls to testing.T.Helper to help testing to skip our framework code.

Changes

  • Add calls to t.Helper() to fix the location where the panic is reported as a test failure.

Motivation

Bug.

Related issues

Cc: @YaroslavDev

@MovieStoreGuy
Copy link
Collaborator

Could I ask you to fix up the issues with CI?

Add calls to t.Helper() to fix the location where the panic is reported
as a test failure.
@dolmen dolmen force-pushed the suite-fix-reporting-of-panic-location branch from 1bf48eb to 2be68b5 Compare January 31, 2024 15:01
@MovieStoreGuy MovieStoreGuy merged commit c3b0c9b into master Jan 31, 2024
14 checks passed
@dolmen dolmen deleted the suite-fix-reporting-of-panic-location branch March 5, 2024 13:25
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