-
Notifications
You must be signed in to change notification settings - Fork 213
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
Use of Feature::Compat::Try in the test libraries #6265
Conversation
}; | ||
die $@ if ($@); | ||
} | ||
catch ($e) { die $e } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering whether we should simply remove the eval/try/die completely because we just re-throw here anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can try but it can done in a different small commit later. wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, doing it in a separate commit is a good idea.
There are actually two more issues to fix:
|
3981bd9
to
f8fc831
Compare
[10:43:15] t/ui/10-tests_overview.t ................... 12/? isElementDisplayed: stale element reference: stale element not found at /home/squamata/project/t/ui/../lib/OpenQA/SeleniumTest.pm:78 at /home/squamata/project/t/ui/../lib/OpenQA/SeleniumTest.pm line 81. Funny again that I cant reproduce it locally. |
The failure of |
perl-Selenium-Remote-Driver-1.49-bp156.1.1.x86_64.rpm in circleci perl-Selenium-Remote-Driver-1.49-1.7.src |
AFICT the problem comes from the perl version in Leap (5.26.1). I cant reproduce it on Tumbeweed with perl version5.40 |
@Mergifyio rebase |
To be consinstence with the rest of the project, module in the test library have to use also try/catch block. This commit should complete the "migration" to Feature::Compat::Try wherever was applicable. https://progress.opensuse.org/issues/176862
✅ Branch has been successfully rebased |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6265 +/- ##
=======================================
Coverage 99.00% 99.00%
=======================================
Files 398 398
Lines 40037 40040 +3
=======================================
+ Hits 39640 39643 +3
Misses 397 397 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
To be consinstence with the rest of the project, module in the test library have to use also try/catch block. This commit should complete the "migration" to Feature::Compat::Try wherever was applicable.
https://progress.opensuse.org/issues/176862