From 1a5f933f4068398009cf0641bfdfb76844fa5baa Mon Sep 17 00:00:00 2001 From: Marat Al Date: Mon, 9 Oct 2023 01:50:03 +0200 Subject: [PATCH] Removed invalid RTL2f test (should test successful and unsuccessful connections recovery). --- Test/Tests/RealtimeClientChannelTests.swift | 37 +-------------------- 1 file changed, 1 insertion(+), 36 deletions(-) diff --git a/Test/Tests/RealtimeClientChannelTests.swift b/Test/Tests/RealtimeClientChannelTests.swift index d4853abeb..98fe361a5 100644 --- a/Test/Tests/RealtimeClientChannelTests.swift +++ b/Test/Tests/RealtimeClientChannelTests.swift @@ -497,42 +497,7 @@ class RealtimeClientChannelTests: XCTestCase { } } - // RTL2f - func test__011__Channel__EventEmitter__channel_states_and_events__ChannelStateChange_will_contain_a_resumed_boolean_attribute_with_value__true__if_the_bit_flag_RESUMED_was_included() throws { - let test = Test() - let options = try AblyTests.commonAppSetup(for: test) - options.testOptions.transportFactory = TestProxyTransportFactory() - options.tokenDetails = try getTestTokenDetails(for: test, ttl: 5.0) - let client = ARTRealtime(options: options) - defer { client.dispose(); client.close() } - let channel = client.channels.get(test.uniqueChannelName()) - - waitUntil(timeout: testTimeout) { done in - channel.on { stateChange in - switch stateChange.current { - case .attached: - XCTAssertFalse(stateChange.resumed) - default: - XCTAssertFalse(stateChange.resumed) - } - } - client.connection.once(.disconnected) { stateChange in - channel.off() - guard let error = stateChange.reason else { - fail("Error is nil"); done(); return - } - XCTAssertEqual(error.code, ARTErrorCode.tokenExpired.intValue) - XCTAssertEqual(channel.state, ARTRealtimeChannelState.attached) - client.connection.once(.connected) { stateChange in - XCTAssertEqual(channel.state, ARTRealtimeChannelState.attached) - let transport = client.internal.transport as! TestProxyTransport - XCTAssertEqual(transport.protocolMessagesReceived.filter { $0.action == .attached && $0.resumed }.count, 1) - done() - } - } - channel.attach() - } - } + // TODO: RTL2f // RTL3