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

feat: add timeout option for exec #254

Merged
merged 4 commits into from
Aug 31, 2024
Merged

feat: add timeout option for exec #254

merged 4 commits into from
Aug 31, 2024

Conversation

KazuCocoa
Copy link
Member

@KazuCocoa KazuCocoa commented Aug 29, 2024

Simctl has default timeout to run exec by teen_process, but the exec method in Simctl does not have individual timeout option. It makes sense to let caller to set timeout per command and the constructor's timeout is default value for the Simctl object wide.

One typical usage is appium/appium-xcuitest-driver#2461

lib/simctl.js Outdated Show resolved Hide resolved
lib/simctl.js Outdated
@@ -196,7 +200,11 @@ class Simctl {
encoding,
};
if (!asynchronous) {
execOpts.timeout = this.execTimeout;
if (timeout) {
Copy link
Member

Choose a reason for hiding this comment

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

execOpts.timeout = timeout || this.execTimeout

?

@KazuCocoa KazuCocoa merged commit 1c2e1d8 into master Aug 31, 2024
12 checks passed
@KazuCocoa KazuCocoa deleted the timeout branch August 31, 2024 01:59
github-actions bot pushed a commit that referenced this pull request Aug 31, 2024
## [7.6.0](v7.5.5...v7.6.0) (2024-08-31)

### Features

* add timeout option for exec ([#254](#254)) ([1c2e1d8](1c2e1d8))
Copy link

🎉 This issue has been resolved in version 7.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants