Repository navigation
Closed
Labels
flaky-testIssues and PRs involving tests that fail intermittently in CI.Issues and PRs involving tests that fail intermittently in CI.httpIssues and PRs related to the http subsystem.Issues and PRs related to the http subsystem.testIssues and PRs related to Node.js core tests and test infrastructure.Issues and PRs related to Node.js core tests and test infrastructure.
Description
- Version: v11.0.0-pre(master)
- Platform: ubuntu1604_sharedlibs_debug_x64
- Subsystem: test
11:15:20 not ok 833 parallel/test-http-client-timeout-option-with-agent
11:15:20 ---
11:15:20 duration_ms: 17.334
11:15:20 severity: fail
11:15:20 exitcode: 1
11:15:20 stack: |-
11:15:20 assert.js:84
11:15:20 throw new AssertionError(obj);
11:15:20 ^
11:15:20
11:15:20 AssertionError [ERR_ASSERTION]: Input A expected to strictly equal input B:
11:15:20 + expected - actual
11:15:20
11:15:20 - 4
11:15:20 + 3
11:15:20 at ClientRequest.req.on.common.mustCall (/home/iojs/build/workspace/node-test-commit-linux-containered/nodes/ubuntu1604_sharedlibs_debug_x64/test/parallel/test-http-client-timeout-option-with-agent.js:46:12)
11:15:20 at ClientRequest.<anonymous> (/home/iojs/build/workspace/node-test-commit-linux-containered/nodes/ubuntu1604_sharedlibs_debug_x64/test/common/index.js:467:15)
11:15:20 at ClientRequest.emit (events.js:182:13)
11:15:20 at Socket.emitRequestTimeout (_http_client.js:669:40)
11:15:20 at Object.onceWrapper (events.js:273:13)
11:15:20 at Socket.emit (events.js:182:13)
11:15:20 at Socket._onTimeout (net.js:448:8)
11:15:20 at ontimeout (timers.js:454:11)
11:15:20 at tryOnTimeout (timers.js:326:5)
11:15:20 at listOnTimeout (timers.js:300:5)
11:15:20 ...
This test asserts the elapsed time of timeout in second units. But the actual timeout may be longer in some situations.
It seems that other related tests avoid measuring the elapsed time. I would like to modify this test to make it less likely fail and keep the consistency of these tests.
Metadata
Metadata
Assignees
Labels
flaky-testIssues and PRs involving tests that fail intermittently in CI.Issues and PRs involving tests that fail intermittently in CI.httpIssues and PRs related to the http subsystem.Issues and PRs related to the http subsystem.testIssues and PRs related to Node.js core tests and test infrastructure.Issues and PRs related to Node.js core tests and test infrastructure.
Activity
Trott commentedon Aug 3, 2018
The main cause of failure here is almost certainly that it's a debug build, which makes everything run slooooowwwwer.....
test: move test-http-client-timeout-option-with-agent to sequential
Trott commentedon Aug 19, 2018
Alas, still flaky.
https://ci.nodejs.org/job/node-test-commit-linux-containered/6421/nodes=ubuntu1604_sharedlibs_shared_x64/console
[-]test: possible flaky test-http-client-timeout-option-with-agent[/-][+]Investigate flaky test-http-client-timeout-option-with-agent[/+]test: fix flaky http timeout test
Trott commentedon Aug 19, 2018
Proposed fix in #22403
test: fix flaky http timeout test
test: fix flaky http timeout test
test: fix flaky http timeout test
test: move test-http-client-timeout-option-with-agent to sequential
test: move test-http-client-timeout-option-with-agent to sequential