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

fix: typo to get the outputs while registering them in a mock #6040

Merged
merged 4 commits into from
Jan 12, 2021

Conversation

roderik
Copy link
Contributor

@roderik roderik commented Jan 2, 2021

Resolves: #6039

Sidenote, to actually find the issue, I had to console log deep inside resource.js here https://github.com/pulumi/pulumi/blob/master/sdk/nodejs/runtime/resource.ts#L702

      RegisterResourceOutputs RPC finished: urn=urn:pulumi:stack::project::bpaas:cluster::test1; err: TypeError: req.getOuptuts is not a function, resp: undefined

Now I'm totally not deep enough in the way it all works under the hood, but if 'err' has an error, wouldn't reject() be better than resolve()?

@justinvp justinvp requested a review from pgavlin January 4, 2021 20:45
@pgavlin
Copy link
Member

pgavlin commented Jan 5, 2021

Now I'm totally not deep enough in the way it all works under the hood, but if 'err' has an error, wouldn't reject() be better than resolve()?

Looks like there are two instances of that call to log. The other immediately precedes the code that calls reject:
https://github.com/pulumi/pulumi/blob/master/sdk/nodejs/runtime/resource.ts#L689-L699

@pgavlin
Copy link
Member

pgavlin commented Jan 5, 2021

/run-acceptance-tests

@github-actions
Copy link

github-actions bot commented Jan 5, 2021

Please view the results of the PR Build + Acceptance Tests Run Here

@pgavlin
Copy link
Member

pgavlin commented Jan 5, 2021

/run-acceptance-tests

@github-actions
Copy link

github-actions bot commented Jan 5, 2021

Please view the results of the PR Build + Acceptance Tests Run Here

@pgavlin pgavlin merged commit f5c65c1 into pulumi:master Jan 12, 2021
@roderik roderik deleted the patch-1 branch January 12, 2021 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Testing custom resources throws an unhandled exception after success
2 participants