Skip to content

Commit

Permalink
Use new bootstrap constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
imurchie committed Jan 12, 2016
1 parent 550287a commit 1d4c107
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
build
*.log
.DS_Store
2 changes: 1 addition & 1 deletion lib/driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class AndroidDriver extends BaseDriver {
await this.initAUT();
}
// start UiAutomator
this.bootstrap = new helpers.bootstrap(DEVICE_PORT, this.opts.websocket);
this.bootstrap = new helpers.bootstrap(this.adb, DEVICE_PORT, this.opts.websocket);
await this.bootstrap.start(this.opts.appPackage, this.opts.disableAndroidWatchers);
// handling unexpected shutdown
this.bootstrap.onUnexpectedShutdown.catch(async (err) => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"dependencies": {
"adm-zip": "^0.4.7",
"appium-adb": "^2.2.0",
"appium-android-bootstrap": "^2.2.3",
"appium-android-bootstrap": "^2.3.0",
"appium-android-ime": "^2.0.0",
"appium-base-driver": "^1.0.2",
"appium-chromedriver": "^2.6.0",
Expand Down
4 changes: 2 additions & 2 deletions test/unit/driver-specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ describe('driver', () => {
beforeEach(async () => {
driver = new AndroidDriver();
driver.adb = new ADB();
driver.bootstrap = new helpers.bootstrap();
driver.bootstrap = new helpers.bootstrap(driver.adb);
sandbox.stub(driver, 'stopChromedriverProxies');
sandbox.stub(driver.adb, 'setIME');
sandbox.stub(driver.adb, 'forceStop');
Expand Down Expand Up @@ -129,7 +129,7 @@ describe('driver', () => {
beforeEach(async () => {
driver = new AndroidDriver();
driver.adb = new ADB();
driver.bootstrap = new helpers.bootstrap();
driver.bootstrap = new helpers.bootstrap(driver.adb);
driver.settings = { update: function () {} };
driver.caps = {};

Expand Down

0 comments on commit 1d4c107

Please sign in to comment.