diff options
| author | Kunal Mohan <kunalmohan99@gmail.com> | 2021-03-24 01:47:53 +0530 |
|---|---|---|
| committer | Kunal Mohan <kunalmohan99@gmail.com> | 2021-05-04 20:47:52 +0530 |
| commit | fe8fb79da072d7a0aa1e31a70b65d8475db68416 (patch) | |
| tree | 83a222b3666ba0671a51811cc8426676f36b73db /src/tests | |
| parent | minor fix while opening new tab (diff) | |
| download | sl0ppij-fe8fb79da072d7a0aa1e31a70b65d8475db68416.tar.gz sl0ppij-fe8fb79da072d7a0aa1e31a70b65d8475db68416.tar.xz sl0ppij-fe8fb79da072d7a0aa1e31a70b65d8475db68416.zip | |
a probable fix for tests
Diffstat (limited to 'src/tests')
| -rw-r--r-- | src/tests/fakes.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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() |
