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

Add timeout option to debug command #712

Merged
merged 1 commit into from
Jul 29, 2015
Merged

Conversation

Fatme
Copy link
Contributor

@Fatme Fatme commented Jul 29, 2015

#682
#636
#375

Should be merged after this PR telerik/mobile-cli-lib#406

@ns-bot
Copy link

ns-bot commented Jul 29, 2015

@Fatme Fatme added this to the 1.2.2 milestone Jul 29, 2015
@@ -195,8 +196,8 @@ class AndroidDebugService implements IDebugService {
private startAndGetPort(packageName: string): IFuture<number> {
return (() => {
let port = -1;
let timeout = 60;

let timeout = this.$utils.getParsedTimeout(60);
Copy link
Contributor

Choose a reason for hiding this comment

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

tab/space isssue maybe

@rosen-vladimirov
Copy link
Contributor

👍

@Fatme Fatme force-pushed the fatme/debugger-timeout branch from a5d32a1 to 06cefce Compare July 29, 2015 08:24
@ns-bot
Copy link

ns-bot commented Jul 29, 2015

let timeout = timeoutInMilliseconds || this.$utils.getMilliSecondsTimeout(IOSDebugService.TIMEOUT_SECONDS);
let readyForAttachTimeout = timeout / 10 ;
let defaultReadyForAttachTimeout = 5000;
return readyForAttachTimeout > defaultReadyForAttachTimeout ? readyForAttachTimeout : defaultReadyForAttachTimeout;
Copy link
Contributor

Choose a reason for hiding this comment

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

You can use Math.max here

@Fatme Fatme force-pushed the fatme/debugger-timeout branch from 06cefce to cd6209d Compare July 29, 2015 10:19
@ns-bot
Copy link

ns-bot commented Jul 29, 2015

Fatme pushed a commit that referenced this pull request Jul 29, 2015
@Fatme Fatme merged commit e566aa6 into release Jul 29, 2015
@Fatme Fatme deleted the fatme/debugger-timeout branch July 29, 2015 10:30
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