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

RTL4f #192

Merged
merged 4 commits into from
Feb 10, 2016
Merged

RTL4f #192

merged 4 commits into from
Feb 10, 2016

Conversation

ricardopereira
Copy link
Contributor

❌ Not passing.

@tcard
Copy link
Contributor

tcard commented Feb 5, 2016

LGTM

transport.actionsIgnored += [.Attached]

let channel = client.channel("test")
channel.attach()
Copy link
Member

Choose a reason for hiding this comment

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

To make this test more deterministic, I would prefer that you instanced the library with a lower realtimeRequestTimeout such as 3s, and then following attach, you should expect the state to change to failed in exactly 3s.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mattheworiordan realtimeRequestTimeout is currently readonly and I can't hack that method because it is a static method. The user should have access to change that option or not?

Copy link
Member

Choose a reason for hiding this comment

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

See http://docs.ably.io/client-lib-development-guide/features/#DF1b, it's not a documented API, but we've made this configurable in our client libraries and left it undocumented for exactly this reason

@ricardopereira
Copy link
Contributor Author

Rebased with changes.

@mattheworiordan
Copy link
Member

LGTM, 👍

ricardopereira added a commit that referenced this pull request Feb 10, 2016
@ricardopereira ricardopereira merged commit 19debf1 into master Feb 10, 2016
@ricardopereira ricardopereira deleted the RTL4f branch February 19, 2016 08:36
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