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(tests): fix the pollingInterval test #110

Merged
merged 1 commit into from
Oct 22, 2023

Conversation

anthonyroach
Copy link
Contributor

Not sure why this test started failing recently, but it's failing in main and PR branches in Node 18 and 20 (but not 16 for some reason). fastify is supposed to close idle connections when close() is called, but it's not doing that in the test for some unknown reason. Setting forceCloseConnections: true makes fastify forcibly close the sockets and shutdown even if the sockets aren't idle, which seems fine for this test.

Not sure why this test started failing recently, but it's
failing in main and PR branches in Node 18 and 20 (but not 16
for some reason). fastify is supposed to close idle connections
when `close()` is called, but it's not doing that in the test
for some unknown reason. Setting `forceCloseConnections: true`
makes fastify forcibly close the sockets and shutdown even
if the sockets aren't idle, which seems fine for this test.
Copy link
Contributor

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@mcollina mcollina merged commit 9096916 into mercurius-js:main Oct 22, 2023
4 checks passed
@anthonyroach anthonyroach deleted the fix-test branch October 25, 2023 19:49
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