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

a few more preparatory improvements #1913

Merged
merged 3 commits into from
Nov 28, 2024

Conversation

sunshowers
Copy link
Member

No description provided.

We're going to add a conditional signal to this list in the future, and it's
easier to just do this.
This was (a) incorrect (should have included paused time) and (b) not resilient
to clock changes.
@sunshowers sunshowers marked this pull request as ready for review November 28, 2024 06:38
1. In `poll`, unconditionally call `this.sleep.poll`. The rationale is in the
   attached comment.
2. Fix `reset_original_duration` to work correctly with paused timers, and
   rename it to `reset_last_duration`.
3. Add `reset` to reset to a given duration.
Copy link

codecov bot commented Nov 28, 2024

Codecov Report

Attention: Patch coverage is 92.85714% with 8 lines in your changes missing coverage. Please review.

Project coverage is 79.68%. Comparing base (d987628) to head (4885cae).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
nextest-runner/src/signal.rs 74.07% 7 Missing ⚠️
nextest-runner/src/runner.rs 90.90% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##           main    #1913       +/-   ##
=========================================
+ Coverage      0   79.68%   +79.68%     
=========================================
  Files         0       81       +81     
  Lines         0    20747    +20747     
=========================================
+ Hits          0    16532    +16532     
- Misses        0     4215     +4215     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sunshowers sunshowers merged commit 0a05d67 into nextest-rs:main Nov 28, 2024
19 checks passed
@sunshowers sunshowers deleted the sleep-improvements branch November 28, 2024 06: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.

1 participant