AlecAivazis / survey

A golang library for building interactive and accessible prompts with full support for windows and posix terminals.
MIT License
4.07k stars 351 forks source link

Re-enable TestAsk #354

Closed cben closed 3 years ago

cben commented 3 years ago

Those got disabled in https://github.com/AlecAivazis/survey/pull/216/files#diff-3a029c8ea50304c9dc5637560df2375bc28f1620d72744a13f4d3c152bb16a4aR120 and apparently were forgotten since then?

I noticed several tests, some here and some in other files, sometimes get stuck when running go test -v.
Everything works reliably without -v, so I guess there are timing issues due to verbose printing; but when focusing on a single test with -run=REGEXP they also work pretty reliably even with -v.

cben commented 3 years ago

@AlecAivazis please review.

AlecAivazis commented 3 years ago

Thanks for hunting this down @cben!