Skip to content

Commit

Permalink
Merge pull request #1989 from ably/fix/1985-test__013__Channel
Browse files Browse the repository at this point in the history
[ECO-5023] Fixed "test__013_Channel..." failure
  • Loading branch information
maratal authored Oct 9, 2024
2 parents ccca241 + 0c6144f commit 752ff31
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Test/Tests/RealtimeClientChannelTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,12 @@ class RealtimeClientChannelTests: XCTestCase {
}
}

expect(client.connection.state).toEventually(equal(ARTRealtimeConnectionState.connected), timeout: testTimeout)
waitUntil(timeout: testTimeout) { done in
client.connection.once(.connected) { stateChange in
XCTAssertNil(stateChange.reason)
done()
}
}

XCTAssertEqual(channel.state, ARTRealtimeChannelState.attaching)

Expand Down

0 comments on commit 752ff31

Please sign in to comment.