Skip to content

fix: Fix server closing in tests.#3279

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

fix: Fix server closing in tests.#3279
mcollina merged 1 commit intonodejs: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

Loading
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