Skip to content

Conversation

addaleax
Copy link
Collaborator

In addition to the fix in c8cee80, the test here is also flaky
because of a Node.js REPL bug where repl.displayPrompt() was called
twice after we reported an error, which confused the prompt detection
in the shell and made the test flaky depending on whether both prompts
where received in the same output data chunk or not.

For now, just wait until both parts of the double prompt are present
in the output before executing the next input line.

In addition to the fix in c8cee80, the test here is also flaky
because of a Node.js REPL bug where `repl.displayPrompt()` was called
twice after we reported an error, which confused the prompt detection
in the shell and made the test flaky depending on whether both prompts
where received in the same output data chunk or not.

For now, just wait until both parts of the double prompt are present
in the output before executing the next input line.
Copy link
Collaborator

@gribnoysup gribnoysup left a comment

Choose a reason for hiding this comment

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

Oh wow, what a find!

@addaleax addaleax merged commit 29dd4d0 into master Apr 23, 2021
@addaleax addaleax deleted the 589-dev-again branch April 23, 2021 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants