chore: fix flaky stdio_streams_are_locked_in_permission_prompt (#19443)

This commit is contained in:
David Sherret 2023-06-09 13:24:39 -04:00 committed by GitHub
parent 748a102919
commit ff690b0ab4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 58 additions and 36 deletions

View file

@ -4370,6 +4370,7 @@ fn stdio_streams_are_locked_in_permission_prompt() {
std::thread::sleep(Duration::from_millis(50)); // give the other thread some time to output
console.write_line_raw("invalid");
console.expect("Unrecognized option.");
console.expect("Allow? [y/n/A] (y = yes, allow; n = no, deny; A = allow all write permissions)");
console.write_line_raw("y");
console.expect("Granted write access to");