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

Added an option that allows users to specify the number of tries when… #801

Conversation

danielkummer
Copy link

@danielkummer danielkummer commented Jan 12, 2017

… calling start_test_server_in_background. If the option is not specified it will default to 100. This fixes issue #739 and #800

… calling start_test_server_in_background. If the option is not specified it will default to 100. This fixes issue calabash#739
@calabash-ci
Copy link
Collaborator

Can one of the admins verify this patch?

@@ -644,7 +644,8 @@ def start_test_server_in_background(options={})
if keyguard_enabled?
wake_up
end

app_tries = options[:app_launch_tries] || 100
options.delete(:app_launch_tries) unless options[:app_launch_tries].nil?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not modify the given hash as it is a reference

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be something like, change env_options = options to env_options = options.dup, and remove the : app_launch_tries key using env_options.delete(:app_launch_tries), no need for an if.

@jmoody jmoody closed this Apr 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants