-
Notifications
You must be signed in to change notification settings - Fork 26
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
RTN15g #250
RTN15g #250
Conversation
I think this should be rebased with #228 fixes. |
|
||
client.simulateResumeFailure() | ||
|
||
expect(channel.state).toEventually(equal(ARTRealtimeChannelState.Detached), timeout: testTimeout) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be waiting for a Failed
state and not a Detached
state?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't suppose to only detach the channel?
79d60de
to
2548600
Compare
Rebased with master and removed |
channel.attach() | ||
expect(channel.state).toEventually(equal(ARTRealtimeChannelState.Attached), timeout: testTimeout) | ||
|
||
channel.on(.Failed) { errorInfo in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you checking on(Failed)
, this should not happen when a connection resume has failed, the channel goes to a detached state.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More generally, every test that uses callbacks should make sure that the callback is being called. Please add that as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, on(Failed)
does nothing in the test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done ea4a06e.
@ricardopereira #231 is merged, you can rebase this now. |
@ricardopereira are you going to rebase this one? |
Yes. |
e292112
to
ac0306d
Compare
No description provided.