|author||intrigeri <email@example.com>||2016-12-27 13:30:08 +0000|
|committer||intrigeri <firstname.lastname@example.org>||2016-12-27 13:32:17 +0000|
Test suite: don't assume Sikuli is fast.
1 files changed, 4 insertions, 1 deletions
diff --git a/features/step_definitions/erase_memory.rb b/features/step_definitions/erase_memory.rb
index 0966825..c2b684b 100644
@@ -181,11 +181,14 @@ When /^I shutdown and wait for Tails to finish wiping the memory$/ do
check_if_memory_wipe_finished = Proc.new do
+ # Ideally we would want this proc to run in exactly 1s, so that retry_action
+ # would take exactly memory_wipe_timeout seconds. But it takes some time
+ # to run @screen.type and @screen.find, that depends on the host system,
+ # so we can't simply "sleep X".
# We spam keypresses to prevent console blanking from hiding the
# image we're waiting for
- sleep 1