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

[v9.x] test: refactor test-repl #18082

Closed
wants to merge 1 commit into from

Conversation

addaleax
Copy link
Member

  • Switch over to async tracking through promises/async fns
  • Remove an unused temp dir refresh
  • Inline the multiline/npm text prompts into expectations
  • Unify handling prompts/stripping prompts out
  • Make sure no unexpected data is received by requireing
    all lines to be matched, rather than chunks received from
    the REPL. This made the test too loose in terms of
    matched lines and too strict in terms of stream chunking
    requirements.
  • Some general cleanup

PR-URL: #17926

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
Affected core subsystem(s)

- Switch over to async tracking through promises/async fns
- Remove an unused temp dir refresh
- Inline the multiline/npm text prompts into expectations
- Unify handling prompts/stripping prompts out
- Make sure no unexpected data is received by requireing
  all *lines* to be matched, rather than chunks received from
  the REPL. This made the test too loose in terms of
  matched lines and too strict in terms of stream chunking
  requirements.
- Some general cleanup

PR-URL: nodejs#17926
@nodejs-github-bot nodejs-github-bot added test Issues and PRs related to the tests. v9.x labels Jan 10, 2018
Copy link
Contributor

@evanlucas evanlucas left a comment

Choose a reason for hiding this comment

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

@evanlucas
Copy link
Contributor

Landed in 167e9c6. Thanks!

evanlucas pushed a commit that referenced this pull request Jan 15, 2018
- Switch over to async tracking through promises/async fns
- Remove an unused temp dir refresh
- Inline the multiline/npm text prompts into expectations
- Unify handling prompts/stripping prompts out
- Make sure no unexpected data is received by requireing
  all *lines* to be matched, rather than chunks received from
  the REPL. This made the test too loose in terms of
  matched lines and too strict in terms of stream chunking
  requirements.
- Some general cleanup

Backport-PR-URL: #18082
PR-URL: #17926
Reviewed-By: Evan Lucas <evanlucas@me.com>
@evanlucas evanlucas closed this Jan 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants