Skip to content

Commit

Permalink
Update RSC15a for 0.9 (#515)
Browse files Browse the repository at this point in the history
* Start 0.9 version

* Update RSC15a: default fallback hosts

* Default fallbackHosts as Array of Strings
  • Loading branch information
ricardopereira authored Oct 18, 2016
1 parent f579618 commit 8700e1b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Spec/RestClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,14 @@ class RestClient: QuickSpec {
ARTFallback_getRandomHostIndex = originalARTFallback_getRandomHostIndex
}

it("default fallback hosts should match @[a-e].ably-realtime.com@") {
let defaultFallbackHosts = ARTDefault.fallbackHosts()
defaultFallbackHosts.forEach { host in
expect(host).to(match("[a-e].ably-realtime.com"))
}
expect(defaultFallbackHosts).to(haveCount(5))
}

it("until httpMaxRetryCount has been reached") {
let options = ARTClientOptions(key: "xxxx:xxxx")
let client = ARTRest(options: options)
Expand Down

0 comments on commit 8700e1b

Please sign in to comment.