Skip to content

Commit

Permalink
Retry launch_app to fix OOM flakes
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdowell committed Jul 1, 2021
1 parent 4224ba8 commit f5345a0
Showing 1 changed file with 6 additions and 1 deletion.
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

0 comments on commit f5345a0

Please sign in to comment.