Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused callback argument to wct.cli.run and wct.cli.startSauceTunnel #439

Merged
merged 1 commit into from
Jun 13, 2018

Conversation

dfreedm
Copy link
Member

@dfreedm dfreedm commented Jun 6, 2018

Also remove promise in wct-st, as the promise resolves immediately on
sauce tunnel creation, killing the new sauce tunnel

Fixes #438

…Tunnel

Also remove promise in wct-st, as the promise resolves immediately on
sauce tunnel creation, killing the new sauce tunnel

Fixes #438
Copy link
Contributor

@usergenic usergenic left a comment

Choose a reason for hiding this comment

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

Even excluding the fact it made the tunnel thing useless, that callback looked highly redundant. LGTM!

var promise = wct.cli.run(process.env, process.argv.slice(2), process.stdout, function (error) {
process.exit(error ? 1 : 0);
});
var promise = wct.cli.run(process.env, process.argv.slice(2), process.stdout);
Copy link
Contributor

Choose a reason for hiding this comment

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

on the next line... do you know why this call might not return a promise?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not a clue.

@justinfagnani
Copy link
Contributor

I think this change constrains the wct command to only working with more recent versions of wct that have the Promise-based API. That's ok, but we should possibly check the version of wct that we resolve to and give a good error message if it's too old.

Or we could just rip out this behavior because it's been fairly confusing in the past.

@usergenic
Copy link
Contributor

Expect error in polymer element 3.x test of polymer-cli to be transient. Merging PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wct-st exits upon sauce tunnel creation
4 participants