Skip to content

Commit

Permalink
test(clafrica): remove useless delay (#89)
Browse files Browse the repository at this point in the history
We don't need to wait before release the key
  • Loading branch information
pythonbrad committed Sep 16, 2023
1 parent 23c1292 commit 9aa7933
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions clafrica/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ mod tests {
$(
thread::sleep($delay);
rdev::simulate(&KeyPress($key)).unwrap();
thread::sleep($delay);
rdev::simulate(&KeyRelease($key)).unwrap();
)*
);
Expand Down Expand Up @@ -209,7 +208,7 @@ mod tests {

#[test]
fn test_simple() {
let typing_speed_ms = Duration::from_millis(300);
let typing_speed_ms = Duration::from_millis(500);

// To detect excessive backspace
const LIMIT: &str = "bbb";
Expand Down

0 comments on commit 9aa7933

Please sign in to comment.