Skip to content

Fixed issue 233, made changes to allow ITransport mocking#236

Merged
paddybyers merged 7 commits intomasterfrom
fix_issue_233
Nov 18, 2016
Merged

Fixed issue 233, made changes to allow ITransport mocking#236
paddybyers merged 7 commits intomasterfrom
fix_issue_233

Conversation

@psolstice
Copy link
Copy Markdown
Contributor

No description provided.


ConnectionWaiter connectionWaiter = new ConnectionWaiter(ablyRealtime.connection);
connectionWaiter.waitFor(ConnectionState.suspended);
assertEquals(ablyRealtime.connection.state, ConnectionState.suspended);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Would be good to check if the error state on the connection is as expected and describes the problem

if(stateChange.state == ConnectionState.disconnected) {
switch(state.state) {
case connecting:
case disconnected:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we no longer need this line now. Did you re-run the tests without it?

@paddybyers paddybyers merged commit c94ebcb into master Nov 18, 2016
@paddybyers paddybyers deleted the fix_issue_233 branch November 18, 2016 16:26
@paddybyers
Copy link
Copy Markdown
Member

Thanks

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