diff --git a/Test/Tests/RealtimeClientChannelTests.swift b/Test/Tests/RealtimeClientChannelTests.swift index d90dd8d4b..1da4b3ef6 100644 --- a/Test/Tests/RealtimeClientChannelTests.swift +++ b/Test/Tests/RealtimeClientChannelTests.swift @@ -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 @@ -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 @@ -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")