1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-26 09:10:40 -05:00

chore(test_util): Increate pty timeout to 15s to avoid flakes (#20109)

Mac builds are occasionally flaking out on these.
This commit is contained in:
Matt Mastracci 2023-08-09 12:49:05 -06:00 committed by GitHub
parent 2ed85c7dd6
commit 08109b1d86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -181,7 +181,7 @@ impl Pty {
mut condition: impl FnMut(&mut Self) -> bool,
) {
let timeout_time =
Instant::now().checked_add(Duration::from_secs(5)).unwrap();
Instant::now().checked_add(Duration::from_secs(15)).unwrap();
while Instant::now() < timeout_time {
self.fill_more_bytes();
if condition(self) {