Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Randomly duplicated output for Confirm prompt with a non default answer #406

Open
suarezjulian opened this issue Feb 2, 2022 · 3 comments
Labels

Comments

@suarezjulian
Copy link

suarezjulian commented Feb 2, 2022

What operating system and terminal are you using?
Ubuntu 21.10 (this also runs on my CI which is painful)

An example that showcases the bug.
When using unit tests I sometimes see this behaviour on Ubuntu, I think it is related to #404

Full example code https://github.com/suarezjulian/survey_test

What did you expect to see?

?Do you like pizza? Yes

What did you see instead?

?Do you like pizza (y/N)? y
?Do you like pizza? Yes
@suarezjulian
Copy link
Author

I'm willing to contribute a PR to fix this, but I will need some guidance

@mislav
Copy link
Collaborator

mislav commented Feb 7, 2022

@suarezjulian Does this sound like the same issue as #368?

In any case, it would be great if you could investigate this and provide a fix. I didn't yet have time to look into this. My suggestion would be to make a smallest reproduction case possible, then convert that case into a unit test in this project, then try to figure out how to get the unit test to pass and isolate the underlying bug.

@suarezjulian
Copy link
Author

suarezjulian commented Feb 11, 2022

@mislav yeah that looks related or even the same issue as this one. I will try to create a smaller test case

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants