test/activity/navigation_activity_test.rb in ruboto-0.15.0 vs test/activity/navigation_activity_test.rb in ruboto-0.16.0
- old
+ new
@@ -85,10 +85,11 @@
activity.run_on_ui_thread do
btn = activity.find_view_by_id(button_id)
btn.request_focus
btn.perform_click
end
- current_activity = wait_for_monitor_with_timeout(monitor, 5000)
+ waitForIdleSync
+ current_activity = wait_for_monitor_with_timeout(monitor, 10000)
ensure
removeMonitor(monitor)
end
puts "new activity: #{current_activity.inspect}"
assert current_activity.is_a? Java::OrgRuboto::RubotoActivity