diff options
author | Matt Mastracci <matthew@mastracci.com> | 2024-04-02 15:55:06 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-02 15:55:06 -0600 |
commit | 3b9fd1af804e4fe534798ec2d7da440d97ba610c (patch) | |
tree | 0719c35c46a4d1210dcb48f8b69304744ca2fcc0 /tests/node_compat/test/parallel/test-stream2-readable-empty-buffer-no-eof.js | |
parent | cc4ede41a7d39e318d18d3bccf797d232a5b286a (diff) |
fix(cli): Enforce a human delay in prompt to fix paste problem (#23184)
The permission prompt doesn't wait for quiescent input, so someone
pasting a large text file into the console may end up losing the prompt.
We enforce a minimum human delay and wait for a 100ms quiescent period
before we write and accept prompt input to avoid this problem.
This does require adding a human delay in all prompt tests, but that's
pretty straightforward. I rewrote the locked stdout/stderr test while I
was in here.
Diffstat (limited to 'tests/node_compat/test/parallel/test-stream2-readable-empty-buffer-no-eof.js')
0 files changed, 0 insertions, 0 deletions