fix: Fix server closing in tests. by ShogunPanda · Pull Request #3279 · nodejs/undici · GitHub
Skip to content

fix: Fix server closing in tests.#3279

Merged
mcollina merged 1 commit into
nodejs:mainfrom
ShogunPanda:fix-test-closing
May 20, 2024
Merged

fix: Fix server closing in tests.#3279
mcollina merged 1 commit into
nodejs:mainfrom
ShogunPanda:fix-test-closing

Conversation

@ShogunPanda

Copy link
Copy Markdown
Contributor

This relates to...

nodejs/node#53028

Rationale

When running in 18.20.3, the test suite fails to stop the test as the HTTP server does not close if some connections are still pending.

Changes

This PR changes the test utils to close pending connection first before closing the server. This is already the default behavior in Node 20+.

Features

N/A

Bug Fixes

N/A

Breaking Changes and Deprecations

N/A

Status

Comment thread test/utils/node-http.js

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

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.

2 participants