Skip to content

Commit

Permalink
Fixed test where channel options were mutated.
Browse files Browse the repository at this point in the history
  • Loading branch information
maratal committed Aug 30, 2024
1 parent 4952663 commit eba2bfd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Test/Tests/RealtimeClientChannelTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1687,10 +1687,11 @@ class RealtimeClientChannelTests: XCTestCase {
}
}

channelOptions.modes = [.subscribe]
let channelOptions2 = ARTRealtimeChannelOptions()
channelOptions2.modes = [.subscribe]
let client2 = ARTRealtime(options: options)
defer { client2.dispose(); client2.close() }
let channelWithoutAttachResume = client2.channels.get(channelName, options: channelOptions)
let channelWithoutAttachResume = client2.channels.get(channelName, options: channelOptions2)
waitUntil(timeout: testTimeout) { done in

Check failure on line 1695 in Test/Tests/RealtimeClientChannelTests.swift

View workflow job for this annotation

GitHub Actions / check (iOS, test_iOS17_2)

test__048__Channel__attach__attach_resume__should_encode_correctly_the_AttachResume_flag, Waited more than 20.0 seconds

Check failure on line 1695 in Test/Tests/RealtimeClientChannelTests.swift

View workflow job for this annotation

GitHub Actions / check (tvOS, test_tvOS17_2)

test__048__Channel__attach__attach_resume__should_encode_correctly_the_AttachResume_flag, Waited more than 20.0 seconds

Check failure on line 1695 in Test/Tests/RealtimeClientChannelTests.swift

View workflow job for this annotation

GitHub Actions / check (macOS, test_macOS)

test__048__Channel__attach__attach_resume__should_encode_correctly_the_AttachResume_flag, Waited more than 20.0 seconds
channelWithoutAttachResume.subscribe { message in
XCTAssertEqual(message.name, "test")
Expand Down

0 comments on commit eba2bfd

Please sign in to comment.