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

RTN15g #250

Merged
merged 2 commits into from
Mar 2, 2016
Merged

RTN15g #250

merged 2 commits into from
Mar 2, 2016

Conversation

ricardopereira
Copy link
Contributor

No description provided.

@ricardopereira
Copy link
Contributor Author

I think this should be rebased with #228 fixes.


client.simulateResumeFailure()

expect(channel.state).toEventually(equal(ARTRealtimeChannelState.Detached), timeout: testTimeout)
Copy link
Member

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?

Copy link
Contributor Author

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?

@ricardopereira
Copy link
Contributor Author

Rebased with master and removed pending.

channel.attach()
expect(channel.state).toEventually(equal(ARTRealtimeChannelState.Attached), timeout: testTimeout)

channel.on(.Failed) { errorInfo in
Copy link
Member

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.

Copy link
Contributor

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.

Copy link
Contributor Author

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.

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 ea4a06e.

@tcard
Copy link
Contributor

tcard commented Feb 29, 2016

@ricardopereira #231 is merged, you can rebase this now.

@mattheworiordan
Copy link
Member

@ricardopereira are you going to rebase this one?

@ricardopereira
Copy link
Contributor Author

Yes.

@ricardopereira ricardopereira force-pushed the RTN15g branch 2 times, most recently from e292112 to ac0306d Compare March 2, 2016 08:21
ricardopereira added a commit that referenced this pull request Mar 2, 2016
@ricardopereira ricardopereira merged commit aa4fb8c into master Mar 2, 2016
@ricardopereira ricardopereira deleted the RTN15g branch March 2, 2016 10:41
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