-
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
RSC15a #384
Conversation
5ac5963
to
06f3a3b
Compare
let resultFallbackHosts = testHTTPExecutor.requests.flatMap(extractHostname) | ||
let orderedFallbackHosts = "abcde".characters.map({String($0) + ".ably-rest.com"}) | ||
|
||
expect(resultFallbackHosts).toNot(equal(orderedFallbackHosts)) |
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.
This test will fail once every 120 times (I think) so I am not sure is a great test. I am not sure how to test it perfectly though, perhaps retry once making it a 1 in 14,400 chance?
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.
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.
😅 Thanks for the fix.
PTAL |
He he, nice one @tcard re: |
LGTM, thank you. |
I wanted to merge this but the test suite is failing.
The odd thing is, I tried on my machine and many tests are failing as well with |
@ricardopereira please provide a detailed log of the protocol messages with timestamps so that we can see if this is a realtime sandbox issue or a test suite issue |
|
I ran the complete test suite with verbose log and I noticed a bunch of
But I think that's not what's causing failures. |
So, I found the problem. The
Most of the tests are written like this, e.g.: __weak XCTestExpectation *expectation = [self expectationWithDescription:@"detaching_to_attaching"];
[ARTTestUtil testRealtime:^(ARTRealtime *realtime) { //<-- https://sandbox-rest.ably.io:443/apps call
...
}
[self waitForExpectationsWithTimeout:[ARTTestUtil timeout] handler:nil]; where the |
Cool, good catch @ricardopereira. I'm merging this though, as this PR has nothing to do with that and all the RestClient tests are passing, so please issue a separate PR if you don't mind. |
@tcard Yes, I will. Just making some final tests. |
No description provided.