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

fix(testing): FakeTime fakes AbortSignal.timeout #5500

Merged
merged 3 commits into from
Jul 22, 2024

Conversation

Milly
Copy link
Contributor

@Milly Milly commented Jul 20, 2024

async/deadline v1.0.0 uses AbortSignal.timeout, so FakeTime cannot be used for it.

Fixes #5499.

@Milly Milly requested a review from kt3k as a code owner July 20, 2024 11:47
Copy link

codecov bot commented Jul 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.30%. Comparing base (c3ccd67) to head (135f3a7).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5500   +/-   ##
=======================================
  Coverage   96.30%   96.30%           
=======================================
  Files         463      464    +1     
  Lines       37660    37695   +35     
  Branches     5558     5561    +3     
=======================================
+ Hits        36267    36302   +35     
  Misses       1351     1351           
  Partials       42       42           

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

Copy link
Contributor

@iuioiua iuioiua left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you. @kt3k, PTAL.

@kt3k kt3k changed the title feat(testing): FakeTime fakes AbortSignal.timeout fix(testing): FakeTime fakes AbortSignal.timeout Jul 22, 2024
Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@kt3k kt3k merged commit 55297e9 into denoland:main Jul 22, 2024
17 checks passed
@Milly Milly deleted the feat-testing-time-fakes-abortsignal-timeout branch July 22, 2024 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@std/async/deadline with @std/testing/time doesn't work
3 participants