summaryrefslogtreecommitdiffstats
path: root/src/tests/fakes
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2019-11-07 00:03:37 +0100
committerAram Drevekenin <aram@poor.dev>2019-11-07 00:03:37 +0100
commit34c952efd287b9cc3da89b5811a092954f4d99e1 (patch)
treef0a32ce4ed11de48c83e2fc2cb33f885f5bcd439 /src/tests/fakes
parentac42b697ce0ffc20993baa6cbd9c12e1ba518499 (diff)
fix(packets): take render duration into account so as not to lose any packets
Diffstat (limited to 'src/tests/fakes')
-rw-r--r--src/tests/fakes/fake_input.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/fakes/fake_input.rs b/src/tests/fakes/fake_input.rs
index 5e238e4..d11d974 100644
--- a/src/tests/fakes/fake_input.rs
+++ b/src/tests/fakes/fake_input.rs
@@ -25,7 +25,7 @@ impl Iterator for KeyboardEvents {
Some(ev) => match ev {
Some(ev) => Some(ev),
None => {
- thread::sleep(time::Duration::from_secs(1));
+ thread::sleep(time::Duration::from_millis(900));
self.next()
}
},
@@ -147,7 +147,7 @@ pub fn create_fake_lookup_addr(
pub fn create_fake_on_winch(should_send_winch_event: bool) -> Box<dyn Fn(Box<dyn Fn()>) + Send> {
Box::new(move |cb| {
if should_send_winch_event {
- thread::sleep(time::Duration::from_secs(1));
+ thread::sleep(time::Duration::from_millis(900));
cb()
}
})