★ wanayoo — archive 1999 https://github.com/nodejs/node/pull/17828Nouvelle recherche | Portail wanayoo
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

repl: refactor tests to not rely on timing #17828

Closed
wants to merge 1 commit into from

Conversation

9 participants
@bmeck
Copy link
Member

bmeck commented Dec 22, 2017

Tests relying on synchronous timing have been migrated to use events.

This is in preparation for more robust testing with the top level await transform. Some minor naming changes were also made to try and make bits more consistent as I was reading them.

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)

repl, test

@Trott

This comment has been minimized.

Copy link
Member

Trott commented Dec 28, 2017

@joyeecheung

This comment has been minimized.

Copy link
Member

joyeecheung commented Jan 17, 2018

@bmeck this needs a rebase, thanks!

repl: refactor tests to not rely on timing
Tests relying on synchronous timing have been migrated to use events.

@bmeck bmeck force-pushed the bmeck:async-repl-tests branch from bbe4925 to 01e697e Jan 17, 2018

@targos

targos approved these changes Jan 20, 2018

@targos

This comment has been minimized.

@maclover7 maclover7 force-pushed the nodejs:master branch from bb5575a to 993b716 Jan 26, 2018

@cjihrig cjihrig force-pushed the nodejs:master branch from 993b716 to 082f952 Jan 26, 2018

@apapirovski

This comment has been minimized.

@BridgeAR

This comment has been minimized.

Copy link
Member

BridgeAR commented Feb 10, 2018

Landed in de848ac 🎉

BridgeAR added a commit to BridgeAR/node that referenced this pull request Feb 10, 2018

repl: refactor tests to not rely on timing
Tests relying on synchronous timing have been migrated to use events.

PR-URL: nodejs#17828
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>

@BridgeAR BridgeAR closed this Feb 10, 2018

@BridgeAR

This comment has been minimized.

Copy link
Member

BridgeAR commented Feb 11, 2018

Hm, this broke multilines in the repl.

This can easily be verified with:

{

After entering that, it is not possible to type anything anymore.

@bmeck do you think you can get this working soon again? Otherwise I guess the best will be to revert it?

@BridgeAR BridgeAR referenced this pull request Feb 11, 2018

Closed

Revert "repl: refactor tests to not rely on timing" #18715

4 of 4 tasks complete
@bmeck

This comment has been minimized.

Copy link
Member Author

bmeck commented Feb 11, 2018

@BridgeAR I'll take a look tomorrow and think I can fix it.

cjihrig added a commit to cjihrig/node-1 that referenced this pull request Feb 11, 2018

test: add multiline repl input regression test
This commit adds a regression test for
de848ac, which broke
multiline input in the REPL.

Refs: nodejs#17828
Refs: nodejs#18715

@cjihrig cjihrig referenced this pull request Feb 11, 2018

Merged

test: add multiline repl input regression test #18718

2 of 2 tasks complete

BridgeAR added a commit to BridgeAR/node that referenced this pull request Feb 12, 2018

Revert "repl: refactor tests to not rely on timing"
This reverts commit de848ac.

The commit broke multiline repl.

PR-URL: nodejs#18715
Refs: nodejs#17828
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>

cjihrig added a commit to cjihrig/node-1 that referenced this pull request Feb 14, 2018

test: add multiline repl input regression test
This commit adds a regression test for
de848ac, which broke
multiline input in the REPL.

Refs: nodejs#17828
Refs: nodejs#18715

cjihrig added a commit to cjihrig/node-1 that referenced this pull request Feb 14, 2018

test: add multiline repl input regression test
This commit adds a regression test for
de848ac, which broke
multiline input in the REPL.

PR-URL: nodejs#18718
Refs: nodejs#17828
Refs: nodejs#18715
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
@MylesBorins

This comment has been minimized.

Copy link
Member

MylesBorins commented Feb 21, 2018

Should this be backported to v9.x-staging? If yes please follow the guide and raise a backport PR, if not let me know or add the dont-land-on label.

edit: looks like it was reverted setting don't land

MylesBorins added a commit that referenced this pull request Feb 21, 2018

test: add multiline repl input regression test
This commit adds a regression test for
de848ac, which broke
multiline input in the REPL.

PR-URL: #18718
Refs: #17828
Refs: #18715
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>

MylesBorins added a commit that referenced this pull request Feb 21, 2018

test: add multiline repl input regression test
This commit adds a regression test for
de848ac, which broke
multiline input in the REPL.

PR-URL: #18718
Refs: #17828
Refs: #18715
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>

MayaLekova added a commit to MayaLekova/node that referenced this pull request May 8, 2018

repl: refactor tests to not rely on timing
Tests relying on synchronous timing have been migrated to use events.

PR-URL: nodejs#17828
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>

MayaLekova added a commit to MayaLekova/node that referenced this pull request May 8, 2018

Revert "repl: refactor tests to not rely on timing"
This reverts commit de848ac.

The commit broke multiline repl.

PR-URL: nodejs#18715
Refs: nodejs#17828
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>

MayaLekova added a commit to MayaLekova/node that referenced this pull request May 8, 2018

test: add multiline repl input regression test
This commit adds a regression test for
de848ac, which broke
multiline input in the REPL.

PR-URL: nodejs#18718
Refs: nodejs#17828
Refs: nodejs#18715
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>

@targos targos removed the author ready label Jun 8, 2018

MylesBorins added a commit that referenced this pull request Aug 7, 2018

test: add multiline repl input regression test
This commit adds a regression test for
de848ac, which broke
multiline input in the REPL.

PR-URL: #18718
Refs: #17828
Refs: #18715
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>

MylesBorins added a commit that referenced this pull request Aug 7, 2018

test: add multiline repl input regression test
This commit adds a regression test for
de848ac, which broke
multiline input in the REPL.

PR-URL: #18718
Refs: #17828
Refs: #18715
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>

MylesBorins added a commit that referenced this pull request Aug 9, 2018

test: add multiline repl input regression test
This commit adds a regression test for
de848ac, which broke
multiline input in the REPL.

PR-URL: #18718
Refs: #17828
Refs: #18715
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>

rvagg added a commit that referenced this pull request Aug 16, 2018

test: add multiline repl input regression test
This commit adds a regression test for
de848ac, which broke
multiline input in the REPL.

PR-URL: #18718
Refs: #17828
Refs: #18715
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>

MylesBorins added a commit that referenced this pull request Aug 16, 2018

test: add multiline repl input regression test
This commit adds a regression test for
de848ac, which broke
multiline input in the REPL.

PR-URL: #18718
Refs: #17828
Refs: #18715
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>

@targos targos added this to Don't land (for now) in v10.x Sep 23, 2018

@targos targos moved this from Don't land (for now) to Don't land (ever) in v10.x Sep 23, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.