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(ext/node): reduce race condition in test case #27207

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented Dec 3, 2024

This partially addresses #27154 (#27154 (comment) )

This PR reduces the race condition in unit_node test case [node/http] client closing a streaming request doesn't terminate server.

This now resolves the deferred when the server received the error, which is the required condition for the next assertion after await deferred1.promise. This should be more correct than resolving it using timer.

Copy link
Member

@satyarohith satyarohith left a comment

Choose a reason for hiding this comment

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

LGTM

@dsherret
Copy link
Member

dsherret commented Dec 3, 2024

Thanks!

@kt3k kt3k merged commit 32b4c37 into denoland:main Dec 4, 2024
17 checks passed
@kt3k kt3k deleted the test-node-reduce-race branch December 4, 2024 02:29
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.

4 participants