Skip to content

Commit

Permalink
Removed RTL2f claim (#1812).
Browse files Browse the repository at this point in the history
  • Loading branch information
maratal committed Nov 27, 2023
1 parent c544507 commit 9ea873b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Test/Tests/RealtimeClientChannelTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -847,8 +847,7 @@ class RealtimeClientChannelTests: XCTestCase {
}

// RTL3d - https://github.com/ably/ably-cocoa/issues/881
// RTL2f
func test__015__Channel__connection_state__should_attach_successfully_and_remain_attached_when_the_connection_state_without_a_successful_recovery_gets_CONNECTED() throws {
func test__015__Channel__connection_state__should_attach_successfully_and_remain_attached_after_the_connection_goes_from_SUSPENDED_to_CONNECTED() throws {
let test = Test()
let options = try AblyTests.commonAppSetup(for: test)
options.disconnectedRetryTimeout = 0.5
Expand Down Expand Up @@ -891,11 +890,6 @@ class RealtimeClientChannelTests: XCTestCase {
}
client.simulateNoInternetConnection(transportFactory: transportFactory)
}

AblyTests.queue.async {
// Do not resume
client.simulateLostConnectionAndState()
}

waitUntil(timeout: testTimeout) { done in
client.connection.once(.connected) { stateChange in
Expand All @@ -907,7 +901,6 @@ class RealtimeClientChannelTests: XCTestCase {

waitUntil(timeout: testTimeout) { done in
channel.once(.attached) { stateChange in
XCTAssertFalse(stateChange.resumed) // RTL2f (resumed is false when the channel is ATTACHED following a failed connection recovery)
XCTAssertNil(stateChange.reason)
channel.on(.suspended) { _ in
fail("Should not reach SUSPENDED state")
Expand Down

0 comments on commit 9ea873b

Please sign in to comment.