lib/calabash-android/operations.rb in calabash-android-0.5.6 vs lib/calabash-android/operations.rb in calabash-android-0.5.7

- old
+ new

@@ -553,11 +553,11 @@ wake_up_cmd = "#{adb_command} shell am start -a android.intent.action.MAIN -n #{package_name(@test_server_path)}/sh.calaba.instrumentationbackend.WakeUp" log "Waking up device using:" log wake_up_cmd raise "Could not wake up the device" unless system(wake_up_cmd) - retriable :tries => 10, :interval => 1 do + Retriable.retriable :tries => 10, :interval => 1 do raise "Could not remove the keyguard" if keyguard_enabled? end end def clear_app_data @@ -603,15 +603,15 @@ log "Starting test server using:" log cmd raise "Could not execute command to start test server" unless system("#{cmd} 2>&1") - retriable :tries => 10, :interval => 1 do + Retriable.retriable :tries => 10, :interval => 1 do raise "App did not start" unless app_running? end begin - retriable :tries => 10, :interval => 3 do + Retriable.retriable :tries => 10, :interval => 3 do log "Checking if instrumentation backend is ready" log "Is app running? #{app_running?}" ready = http("/ready", {}, {:read_timeout => 1}) if ready != "true" \ No newline at end of file