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

Increase the default timeout for debug command from 5 to 10 seconds #3752

Merged
merged 2 commits into from
Jul 18, 2018

Conversation

Fatme
Copy link
Contributor

@Fatme Fatme commented Jul 16, 2018

Add support for --timeout option that can be passed to debug command.
Fix help of debug command.

PR Checklist

What is the current behavior?

The default timeout for debug ios command is 5 seconds.

What is the new behavior?

The default timeout for debug ios command is 10 seconds. Also adds support for --timeout option.

…econds.

Add support for --timeout option that can be passed to debug command.
Fix help of debug command.

private getTimeout(debugOptions: IDebugOptions): number {
let timeout = parseInt(debugOptions && debugOptions.timeout, 10);
if (!timeout) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to fallback to 10 secs if the user passes 0? I will expect an infinite wait if I pass 0.

@Natalia-Hristova Natalia-Hristova added this to the 4.2.0 milestone Jul 16, 2018
@Fatme Fatme force-pushed the fatme/timeout-debug branch from 7a37444 to 62b01dd Compare July 18, 2018 06:53
@Fatme
Copy link
Contributor Author

Fatme commented Jul 18, 2018

run ci

@Fatme Fatme merged commit 7d31fe9 into master Jul 18, 2018
@Fatme Fatme deleted the fatme/timeout-debug branch July 18, 2018 13:09
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.

4 participants