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: closed client should be able to reconnect #45

Merged
merged 5 commits into from
May 4, 2020

Conversation

ronag
Copy link
Member

@ronag ronag commented May 3, 2020

No description provided.

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

can you add a unit test?

@ronag
Copy link
Member Author

ronag commented May 3, 2020

added test

@ronag
Copy link
Member Author

ronag commented May 3, 2020

I've put a few commits into this PR to avoid the whole endless conflicts thing. The commits should be somewhat related. Hope you don't mind.

@ronag ronag force-pushed the closed-reconnect branch 4 times, most recently from 116fb46 to 5bd60c2 Compare May 3, 2020 20:41
@@ -265,7 +265,7 @@ test('invalid URL throws', (t) => {
})

test('POST which fails should error response', (t) => {
t.plan(2)
t.plan(4)
Copy link
Member

Choose a reason for hiding this comment

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

why this change?

Copy link
Member Author

Choose a reason for hiding this comment

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

It didn’t call all the calllbacks before

test/client.js Outdated Show resolved Hide resolved
@ronag ronag force-pushed the closed-reconnect branch from ffcb3dc to 378c900 Compare May 4, 2020 04:19
@ronag ronag force-pushed the closed-reconnect branch from 378c900 to dcc0124 Compare May 4, 2020 04:20
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@mcollina mcollina merged commit b1495fa into nodejs:master May 4, 2020
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