lib/honeydew/device.rb in honeydew-0.14.0 vs lib/honeydew/device.rb in honeydew-0.15.0
- old
+ new
@@ -36,10 +36,12 @@
private
def perform_assertion action, arguments = {}, options = {}
ensure_device_ready
+ arguments[:timeout] = Honeydew.config.timeout.to_s
+
log "performing assertion #{action} with arguments #{arguments}"
Timeout.timeout Honeydew.config.timeout.to_i, FinderTimeout do
begin
send_command action, arguments
rescue ActionFailedError
@@ -51,10 +53,10 @@
rescue FinderTimeout
end
def perform_action action, arguments = {}, options = {}
ensure_device_ready
-
+ arguments[:timeout] = Honeydew.config.timeout.to_s
log "performing action #{action} with arguments #{arguments}"
send_command action, arguments
end
def send_command action, arguments