Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry launch_app to fix OOM flakes #1144

Merged
merged 1 commit into from
Jul 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion features/steps/ios_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,12 @@ def click_if_present(element)
system("killall #{app} > /dev/null && sleep 1")
Maze.driver.get(app)
else
Maze.driver.launch_app
begin
Maze.driver.launch_app
rescue
# Retry because launch_app can fail when performed immediately after an app has stopped running.
Maze.driver.launch_app
end
end
end

Expand Down