a probable fix for tests

This commit is contained in:
Kunal Mohan 2021-03-24 01:47:53 +05:30
parent af445394c0
commit fe8fb79da0

View file

@ -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()