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

test(async): fix abortable.AsyncIterable() calls return before throwing test #5596

Merged
merged 2 commits into from
Aug 1, 2024

Conversation

iuioiua
Copy link
Contributor

@iuioiua iuioiua commented Aug 1, 2024

@iuioiua iuioiua requested a review from kt3k as a code owner August 1, 2024 02:08
@iuioiua iuioiua enabled auto-merge (squash) August 1, 2024 02:08
@github-actions github-actions bot added the async label Aug 1, 2024
Copy link

codecov bot commented Aug 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.37%. Comparing base (714fccb) to head (16f10a6).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5596   +/-   ##
=======================================
  Coverage   96.37%   96.37%           
=======================================
  Files         465      466    +1     
  Lines       37506    37526   +20     
  Branches     5527     5528    +1     
=======================================
+ Hits        36147    36167   +20     
  Misses       1317     1317           
  Partials       42       42           

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

Comment on lines 141 to 145
const timeoutId = setTimeout(
() => resolve({ value: "Hello", done: false }),
1,
);
clearTimeout(timeoutId);
Copy link
Member

Choose a reason for hiding this comment

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

These 4 lines look equivalent of nop (timer is created and immediately deleted). I wonder if there's a better fix

@iuioiua iuioiua requested a review from kt3k August 1, 2024 05:20
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

@iuioiua iuioiua merged commit 6e1724b into main Aug 1, 2024
13 checks passed
@iuioiua iuioiua deleted the fix-async-abortable branch August 1, 2024 05:30
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.

2 participants