From fe8fb79da072d7a0aa1e31a70b65d8475db68416 Mon Sep 17 00:00:00 2001 From: Kunal Mohan Date: Wed, 24 Mar 2021 01:47:53 +0530 Subject: [PATCH] a probable fix for tests --- src/tests/fakes.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tests/fakes.rs b/src/tests/fakes.rs index 6b759fb1..342353f6 100644 --- a/src/tests/fakes.rs +++ b/src/tests/fakes.rs @@ -171,6 +171,9 @@ impl ClientOsApi for FakeInputOutput { ::std::thread::sleep(MIN_TIME_BETWEEN_SNAPSHOTS - last_snapshot_time.elapsed()); } } + if self.stdin_commands.lock().unwrap().len() == 1 { + std::thread::sleep_ms(100); + } self.stdin_commands .lock() .unwrap()