diff --git a/0001-Slower-default-typing-speed.patch b/0001-Slower-default-typing-speed.patch index bcef7c5..81a1d0d 100644 --- a/0001-Slower-default-typing-speed.patch +++ b/0001-Slower-default-typing-speed.patch @@ -1,4 +1,4 @@ -From 870ee22fcdd995fa3486448e0ea04e76f3c20679 Mon Sep 17 00:00:00 2001 +From 8115d074e974e815a20a0e426a5ffb0b43a1a4c9 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 15 Aug 2017 10:48:43 -0700 Subject: [PATCH] Slower default typing speed @@ -7,9 +7,53 @@ Suddenly Fedora tests are failing all over the place with typing errors. I have no idea why, but slowing down typing will, I hope!, work around the problem for now. --- - testapi.pm | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) + t/03-testapi.t | 12 ++++++------ + testapi.pm | 2 +- + 2 files changed, 7 insertions(+), 7 deletions(-) +diff --git a/t/03-testapi.t b/t/03-testapi.t +index 1cc75de..7dc5d82 100755 +--- a/t/03-testapi.t ++++ b/t/03-testapi.t +@@ -76,7 +76,7 @@ sub fake_wait_screen_change(&@) { + $mod2->mock(wait_screen_change => \&fake_wait_screen_change); + + type_string 'hallo'; +-is_deeply($cmds, [{cmd => 'backend_type_string', max_interval => 250, text => 'hallo'}]); ++is_deeply($cmds, [{cmd => 'backend_type_string', max_interval => 150, text => 'hallo'}]); + $cmds = []; + + type_string 'hallo', 4; +@@ -84,7 +84,7 @@ is_deeply($cmds, [{cmd => 'backend_type_string', max_interval => 4, text => 'hal + $cmds = []; + + type_string 'hallo', secret => 1; +-is_deeply($cmds, [{cmd => 'backend_type_string', max_interval => 250, text => 'hallo'}]); ++is_deeply($cmds, [{cmd => 'backend_type_string', max_interval => 150, text => 'hallo'}]); + $cmds = []; + + type_string 'hallo', secret => 1, max_interval => 10; +@@ -92,16 +92,16 @@ is_deeply($cmds, [{cmd => 'backend_type_string', max_interval => 10, text => 'ha + $cmds = []; + + type_string 'hallo', wait_screen_change => 3; +-is_deeply($cmds, [{cmd => 'backend_type_string', max_interval => 250, text => 'hal'}, {cmd => 'backend_type_string', max_interval => 250, text => 'lo'},]); ++is_deeply($cmds, [{cmd => 'backend_type_string', max_interval => 150, text => 'hal'}, {cmd => 'backend_type_string', max_interval => 150, text => 'lo'},]); + $cmds = []; + + type_string 'hallo', wait_screen_change => 2; + is_deeply( + $cmds, + [ +- {cmd => 'backend_type_string', max_interval => 250, text => 'ha'}, +- {cmd => 'backend_type_string', max_interval => 250, text => 'll'}, +- {cmd => 'backend_type_string', max_interval => 250, text => 'o'}, ++ {cmd => 'backend_type_string', max_interval => 150, text => 'ha'}, ++ {cmd => 'backend_type_string', max_interval => 150, text => 'll'}, ++ {cmd => 'backend_type_string', max_interval => 150, text => 'o'}, + ]); + $cmds = []; + diff --git a/testapi.pm b/testapi.pm index eabc411..2616e16 100755 --- a/testapi.pm