Skip to content

Commit

Permalink
chore: adjust default cmd timeout and retry count
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa committed Jan 31, 2025
1 parent 495cf0c commit 2686b67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/appium-tizen-tv-driver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ package in your `package.json`)
| `appium:noReset` | If the driver resets the local data of the application under test. It calls `window.localStorage.clear()` and `window.location.reload()` to clear the local data and reload the content. Defaults to `true`.
| `appium:powerCyclePostUrl` | If the driver cycling the device power with `appium:fullReset` capability. Both capabilities are set, the session creation will try to cycle the device power.
| `appium:sendKeysStrategy` | If the driver uses the device's remote control API to send keys or proxies to the running chromedriver session. `proxy` or `rc` is available. Please read `Set Value (Send Keys)` section below for more details. Default to `undefined`. Please configure it explicitly.
| `appium:sdbExecTimeout` | Maximum number of milliseconds to wait until a single sdb/tizen command is executed. 120000ms by default
| `appium:sdbExecRetryCount` | Maximum number of retries to run sdb/tizen command. Each command attempt has `appium:sdbExecTimeout` timeout. For example, if `appium:sdbExecTimeout` was 120000ms and this capability was `2`, the entire max timeout to wait for a sdb/tizen command will be 240000ms. You will get a command timeout error then. Defaults to `2`.
| `appium:sdbExecTimeout` | Maximum number of milliseconds to wait until a single sdb/tizen command is executed. 90000ms by default
| `appium:sdbExecRetryCount` | Maximum number of retries to run sdb/tizen command. Each command attempt has `appium:sdbExecTimeout` timeout. For example, if `appium:sdbExecTimeout` was 120000ms and this capability was `2`, the entire max timeout to wait for a sdb/tizen command will be 240000ms. You will get a command timeout error then. Defaults to `3`.


(*) `appium:chromedriverExecutable` or `appium:chromedriverExecutableDir` are required. The chromedriver autodwonload works only when `appium:chromedriverExecutableDir` is provided.
Expand Down
4 changes: 2 additions & 2 deletions packages/appium-tizen-tv-driver/lib/cli/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ const SDB_BIN_NAME = 'sdb';
/**
* Default timeout to wait for the tizen command.
*/
export const CMD_TIMEOUT_MS = 120000;
export const CMD_TIMEOUT_MS = 90000;

/**
* Default retry count for the tizen command.
*/
export const CMD_RETRY_MAX = 2;
export const CMD_RETRY_MAX = 3;

/**
* back off time in each retry
Expand Down

0 comments on commit 2686b67

Please sign in to comment.