lib/xcmonkey/driver.rb in xcmonkey-1.3.0 vs lib/xcmonkey/driver.rb in xcmonkey-1.3.1
- old
+ new
@@ -54,10 +54,11 @@
next
end
checkup(counter)
end
save_session
+ terminate_app(bundle_id)
end
def repeat_monkey_test
monkey_test_precondition
session_actions.each_with_index do |action, counter|
@@ -75,9 +76,10 @@
else
next
end
checkup(counter)
end
+ terminate_app(bundle_id)
end
def checkup(counter)
detect_app_state_change
if counter % 5 == 0 || throttle.to_i > 0 # Track running apps after every 5th action