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

Add test for error on connection.close() bubbling up #62

Merged
merged 1 commit into from
Jul 28, 2020

Conversation

ramya-rao-a
Copy link
Collaborator

Description

Brief description of the changes made in the PR. This helps in making better changelog

  • Errors can occur when connection.close() is called. This PR adds a test to ensure this error gets bubbled up through the promise returned by connection.close()

Reference to any github issues

@ramya-rao-a ramya-rao-a requested a review from chradek July 28, 2020 05:27
Copy link
Collaborator

@chradek chradek left a comment

Choose a reason for hiding this comment

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

:shipit:

@@ -98,7 +98,7 @@ describe("Connection", () => {
connection.open();
});

it("connectionError", (done: Function) => {
it("disconnected", (done: Function) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thank you 😄

Comment on lines +158 to +160



Copy link
Collaborator

Choose a reason for hiding this comment

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

Super nit: extra whitespace

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll fix that in the next one

@ramya-rao-a ramya-rao-a merged commit 7237cf8 into amqp:master Jul 28, 2020
@ramya-rao-a ramya-rao-a deleted the connection-close-error branch July 28, 2020 22:05
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