-
Notifications
You must be signed in to change notification settings - Fork 14
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
test: engine-runner command line args passing filters correctly #5001
Conversation
480bf2f
to
0a2884a
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5001 +/- ##
======================================
- Coverage 72% 72% -0%
======================================
Files 431 431
Lines 74782 74646 -136
Branches 74782 74646 -136
======================================
- Hits 53592 53401 -191
- Misses 18343 18396 +53
- Partials 2847 2849 +2 ☔ View full report in Codecov by Sentry. |
#[test] | ||
fn incompatible_args_should_be_filtered_out() { | ||
// create temporary file | ||
let tempdir = tempfile::TempDir::new().unwrap(); |
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.
Does tempfile
automatically clean up the temporary file that is created? Maybe we should delete it?
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.
Should be cleaned up on Drop: https://docs.rs/tempfile/latest/tempfile/#resource-leaking
c71dd42
to
41bc578
Compare
* test: engine-runner command line args passing filters correctly * fix: should pass into new first * fix: remove unused sol.rpc
Pull Request
Closes: PRO-1455
Checklist
Please conduct a thorough self-review before opening the PR.
Summary
A bug slipped through into main, fixed here: #4982 - which is hard to pick up without a test like this one.