Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
fix(blockingproxy): Start bpRunner strictly after setupDriverEnv
Browse files Browse the repository at this point in the history
If local driver provider is used, `seleniumAddress` appears in
config only after `setupDriverEnv()` is resolved.
  • Loading branch information
wncm authored and heathkit committed Jul 15, 2017
1 parent b85e7ee commit ab1afb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/driverProviders/driverProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export abstract class DriverProvider {
let driverPromise = this.setupDriverEnv();
if (this.config_.useBlockingProxy && !this.config_.blockingProxyUrl) {
// TODO(heathkit): If set, pass the webDriverProxy to BP.
return q.all([driverPromise, this.bpRunner.start()]);
return driverPromise.then(() => this.bpRunner.start());
}
return driverPromise;
};
Expand Down
1 change: 1 addition & 0 deletions scripts/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ var passingTests = [
'node built/cli.js spec/directConnectConf.js',
'node built/cli.js spec/restartBrowserBetweenTestsConf.js',
'node built/cli.js spec/driverProviderLocalConf.js',
'node built/cli.js spec/driverProviderLocalConf.js --useBlockingProxy',
'node built/cli.js spec/getCapabilitiesConf.js',
'node built/cli.js spec/controlLockConf.js',
'node built/cli.js spec/customFramework.js',
Expand Down

0 comments on commit ab1afb0

Please sign in to comment.