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

RTN13b #436

Merged
merged 3 commits into from
Apr 29, 2016
Merged

RTN13b #436

merged 3 commits into from
Apr 29, 2016

Conversation

ricardopereira
Copy link
Contributor

No description provided.

client.ping() { error in
expect(error).toNot(beNil())
let transport = client.transport as! TestProxyTransport
expect(transport.protocolMessagesSent.filter{ $0.action == .Heartbeat }).to(haveCount(1))
Copy link
Member

Choose a reason for hiding this comment

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

Why is this one when the spec says it should immediately indicate an error, if the connection is CLOSED why are we sending a message?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done 1218765.

@tcard
Copy link
Contributor

tcard commented Apr 28, 2016

PTAL. RTN13b is expanded by ably/docs#112, and there was a test for it introduced in a parallel PR. I've removed your test (sorry for the confusion) and changed the behavior of ping to pass the error to the callback instead of raising an exception.

@ricardopereira
Copy link
Contributor Author

👍

@tcard tcard merged commit 238e8b3 into master Apr 29, 2016
@tcard tcard deleted the rtn13b branch May 16, 2016 07:00
tcard pushed a commit that referenced this pull request May 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants