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

Commit ab1afb0

Browse files
wncmheathkit
authored andcommittedJul 15, 2017
fix(blockingproxy): Start bpRunner strictly after setupDriverEnv
If local driver provider is used, `seleniumAddress` appears in config only after `setupDriverEnv()` is resolved.
1 parent b85e7ee commit ab1afb0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎lib/driverProviders/driverProvider.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export abstract class DriverProvider {
124124
let driverPromise = this.setupDriverEnv();
125125
if (this.config_.useBlockingProxy && !this.config_.blockingProxyUrl) {
126126
// TODO(heathkit): If set, pass the webDriverProxy to BP.
127-
return q.all([driverPromise, this.bpRunner.start()]);
127+
return driverPromise.then(() => this.bpRunner.start());
128128
}
129129
return driverPromise;
130130
};

‎scripts/test.js

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ var passingTests = [
3232
'node built/cli.js spec/directConnectConf.js',
3333
'node built/cli.js spec/restartBrowserBetweenTestsConf.js',
3434
'node built/cli.js spec/driverProviderLocalConf.js',
35+
'node built/cli.js spec/driverProviderLocalConf.js --useBlockingProxy',
3536
'node built/cli.js spec/getCapabilitiesConf.js',
3637
'node built/cli.js spec/controlLockConf.js',
3738
'node built/cli.js spec/customFramework.js',

0 commit comments

Comments
 (0)
This repository has been archived.