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

Return Server#ready promise from Server#attach #223

Merged
merged 2 commits into from
Feb 17, 2016

Conversation

junosuarez
Copy link
Contributor

Return the server ready promise from the Server.attach method

Required

  • 👍 from @zendesk/radar

Risks

  • None (was not returning a value)

var radarServer = new Server()

var returned = radarServer.attach(httpServer, common.configuration)
expect(returned).to.equal(radarServer.ready)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add a test that this promise gets resolved?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a simple test for this- it's not doing a whole lot, but it was cheap and may help catch regressions.

@vanchi-zendesk
Copy link
Contributor

👍

junosuarez added a commit that referenced this pull request Feb 17, 2016
…promise

Return Server#ready promise from Server#attach
@junosuarez junosuarez merged commit 5ff835c into master Feb 17, 2016
@junosuarez junosuarez deleted the jden/server_attach_return_ready_promise branch February 17, 2016 02:04
@junosuarez
Copy link
Contributor Author

landed in 0.21.0

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.

2 participants