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

fix(driverProviders): Handle promise rejection when starting selenium #3989

Merged
merged 2 commits into from
Jan 19, 2017

Conversation

heathkit
Copy link
Contributor

Fixes #3986. Also warn if jvmArgs isn't an array.

@juliemr
Copy link
Member

juliemr commented Jan 19, 2017

LGTM

@@ -113,6 +111,10 @@ export class Local extends DriverProvider {
if (serverConf.port === undefined) {
serverConf.port = this.config_.seleniumPort;
}
if (!Array.isArray(serverConf.jvmArgs)) {
logger.warn('jvmArgs should be an array!');
Copy link
Member

@cnishina cnishina Jan 19, 2017

Choose a reason for hiding this comment

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

We should throw a ConfigError here OR change the lib/config.ts to say that jvmArgs type is string|string[].

@heathkit heathkit merged commit eb89920 into angular:master Jan 19, 2017
@heathkit heathkit deleted the unhandled-rejection branch January 19, 2017 23:59
@heathkit heathkit restored the unhandled-rejection branch January 20, 2017 00:00
@heathkit heathkit deleted the unhandled-rejection branch January 20, 2017 00:00
igniteram pushed a commit to igniteram/protractor that referenced this pull request Feb 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants