Skip to content

test: fix flaky http-client-timeout-agent - #19856

Closed
santigimeno wants to merge 1 commit into
nodejs:masterfrom
santigimeno:fix_test-http-client-timeout-agent
Closed

test: fix flaky http-client-timeout-agent#19856
santigimeno wants to merge 1 commit into
nodejs:masterfrom
santigimeno:fix_test-http-client-timeout-agent

Conversation

@santigimeno

Copy link
Copy Markdown
Member

Close the connection immediately after receiving the end event to
avoid that the timeout event is fired before the connection closes
gracefully.

Fixes: #19804

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@nodejs-github-botnodejs-github-bot added the test Issues and PRs related to the tests. label Apr 6, 2018

@lpincalpinca 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.

SGTM

@santigimeno

Copy link
Copy Markdown
MemberAuthor

@lpinca

Copy link
Copy Markdown
Member

If 'timeout' can be emitted after 'end' isn't this a bug?

@santigimeno

Copy link
Copy Markdown
MemberAuthor

I guess it may make sense not to clear the timeout until the connection is fully closed and not only when the other end closes its side.

Close the connection immediately after receiving the `end` event to
avoid that the `timeout` event is fired before the connection closes
gracefully.
Move the test back to parallel.
Fixes: nodejs#19804
@santigimeno
santigimenoforce-pushed the fix_test-http-client-timeout-agent branch from dd7b621 to 3f2078fCompareApril 7, 2018 11:23
@santigimeno

Copy link
Copy Markdown
MemberAuthor

Updated so the test is moved back to parallel as 95dc590 moved it to sequential.

@BridgeAR

Copy link
Copy Markdown
Member

@BridgeARBridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Apr 8, 2018
@BridgeAR

Copy link
Copy Markdown
Member

Landed in 5b8c62c 🎉

@BridgeARBridgeAR closed this Apr 9, 2018
BridgeAR pushed a commit to BridgeAR/node that referenced this pull request Apr 9, 2018
Close the connection immediately after receiving the `end` event to
avoid that the `timeout` event is fired before the connection closes
gracefully.
Move the test back to parallel.
PR-URL: nodejs#19856Fixes: nodejs#19804
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
targos pushed a commit that referenced this pull request Apr 12, 2018
Close the connection immediately after receiving the `end` event to
avoid that the `timeout` event is fired before the connection closes
gracefully.
Move the test back to parallel.
PR-URL: #19856Fixes: #19804
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
BridgeAR pushed a commit to BridgeAR/node that referenced this pull request May 1, 2018
Close the connection immediately after receiving the `end` event to
avoid that the `timeout` event is fired before the connection closes
gracefully.
Move the test back to parallel.
PR-URL: nodejs#19856Fixes: nodejs#19804
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
MylesBorins pushed a commit that referenced this pull request Aug 1, 2018
Close the connection immediately after receiving the `end` event to
avoid that the `timeout` event is fired before the connection closes
gracefully.
Move the test back to parallel.
PR-URL: #19856Fixes: #19804
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
rvagg pushed a commit that referenced this pull request Aug 16, 2018
Close the connection immediately after receiving the `end` event to
avoid that the `timeout` event is fired before the connection closes
gracefully.
Move the test back to parallel.
PR-URL: #19856Fixes: #19804
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
@MylesBorinsMylesBorins mentioned this pull request Aug 16, 2018
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

investigate flaky parallel/test-http-client-timeout-agent

6 participants

@santigimeno@lpinca@BridgeAR@Trott@MylesBorins@nodejs-github-bot