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

fix(launcher): running getMultiCapabilities should reject on errors #3876

Merged
merged 1 commit into from
Dec 27, 2016

Conversation

cnishina
Copy link
Member

closes #3875

}).then(() => resolve());
q(config.getMultiCapabilities())
.then((multiCapabilities) => {
console.log('here');
Copy link
Contributor

Choose a reason for hiding this comment

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

Leftover console.log

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks. Done.

Copy link
Contributor

@sjelin sjelin left a comment

Choose a reason for hiding this comment

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

Minor stuff

@@ -112,7 +112,7 @@ let initFn = function(configFile: string, additionalConfig: Config) {
.then(() => {

return q
.Promise<any>((resolve: Function) => {
.Promise<any>((resolve: Function, reject: Function) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be new q.Promise(.... Not your fault but please fix anyway

Copy link
Member Author

Choose a reason for hiding this comment

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

This is not possible. Setting this to void returns a transpile error. lib/launcher.ts(114,16): error TS2350: Only a void function can be called with the 'new' keyword.

runProtractor = spawn('node',
['bin/protractor', 'spec/errorTest/getMultiCapabilitiesConf.js']);
output = runProtractor.stderr.toString();
console.log(output);
Copy link
Contributor

Choose a reason for hiding this comment

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

leftover from debugging?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks. Done.

framework: 'debugprint',
getMultiCapabilities: function() {
return new Promise((resolve) => {
this.foo.bar = 1; // will fail because this.foo is undefined
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd rather you just threw something

Copy link
Member Author

Choose a reason for hiding this comment

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

Done. Throwing error.

@cnishina cnishina force-pushed the fix_getMultiCapabilities branch from 8adadba to 8b78800 Compare December 27, 2016 19:11
@cnishina cnishina force-pushed the fix_getMultiCapabilities branch from 8b78800 to ab20e57 Compare December 27, 2016 19:12
@cnishina cnishina merged commit de153e7 into angular:master Dec 27, 2016
@cnishina cnishina deleted the fix_getMultiCapabilities branch January 6, 2017 20:01
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.

exit code 0 on failure (specifically getMultiCapabilities failure)
4 participants