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

test: fix test-readline-interface short delay #14677

Closed
wants to merge 2 commits into from
Closed

test: fix test-readline-interface short delay #14677

wants to merge 2 commits into from

Conversation

Azard
Copy link
Contributor

@Azard Azard commented Aug 7, 2017

Previous unit test delay is too short for parallel test on raspberry pi, it will fail sometimes.
This PR use common.platformTimeout and widen the time gap, a patch of #13497

Refs: #14674

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

readline

  • test-readline-interface

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Aug 7, 2017
@mscdex mscdex added the readline Issues and PRs related to the built-in readline module. label Aug 7, 2017
@Trott Trott mentioned this pull request Aug 8, 2017
2 tasks
@Trott
Copy link
Member

Trott commented Aug 8, 2017

@@ -331,8 +331,8 @@ function isWarned(emitter) {
// over the default crlfDelay but within the setting value
{
const fi = new FakeInput();
const delay = 200;
const crlfDelay = 500;
const delay = common.platformTimeout(125);
Copy link
Member

Choose a reason for hiding this comment

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

Would this be more reliable without common.platformTimeout() here but keeping it in the line below?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Trott Make sense, I have changed this line.

@Trott
Copy link
Member

Trott commented Aug 8, 2017

@Trott
Copy link
Member

Trott commented Aug 8, 2017

Stress test on master (should show failures): https://ci.nodejs.org/job/node-stress-single-test-pi1-fanned/27/

Stress test on this PR (should be green): https://ci.nodejs.org/job/node-stress-single-test-pi1-fanned/28/

@Trott
Copy link
Member

Trott commented Aug 8, 2017

CI is good, stress tests are great, change is small, will help flip one of our CI tasks from red to green, 4 approvals, so I'm going to fast-track this...

@Trott
Copy link
Member

Trott commented Aug 8, 2017

Landed in f11379d

@Trott Trott closed this Aug 8, 2017
Trott pushed a commit to Trott/io.js that referenced this pull request Aug 8, 2017
Previous unit test delay is too short for parallel test on raspberry pi,
it will fail sometimes.  This PR use common.platformTimeout and widen
the time gap.

PR-URL: nodejs#14677
Ref: nodejs#14674
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
addaleax pushed a commit that referenced this pull request Aug 10, 2017
Previous unit test delay is too short for parallel test on raspberry pi,
it will fail sometimes.  This PR use common.platformTimeout and widen
the time gap.

PR-URL: #14677
Ref: #14674
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
@addaleax addaleax mentioned this pull request Aug 13, 2017
MylesBorins pushed a commit that referenced this pull request Sep 19, 2017
Previous unit test delay is too short for parallel test on raspberry pi,
it will fail sometimes.  This PR use common.platformTimeout and widen
the time gap.

PR-URL: #14677
Ref: #14674
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
@MylesBorins MylesBorins mentioned this pull request Sep 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
readline Issues and PRs related to the built-in readline module. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants