Skip to content

Commit

Permalink
Added test for channel's properties property.
Browse files Browse the repository at this point in the history
  • Loading branch information
maratal committed Aug 28, 2024
1 parent fbe2e92 commit 80180c3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Test/Tests/RealtimeClientChannelTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4785,4 +4785,18 @@ class RealtimeClientChannelTests: XCTestCase {
}
}
}

// CP2
func test__140__attributes_of_ChannelProperties_consist_of_attachSerial_and_channelSerial() throws {
let test = Test()
let client = ARTRealtime(options: try AblyTests.commonAppSetup(for: test))
defer { client.dispose(); client.close() }
let channel = client.channels.get(test.uniqueChannelName())
XCTAssertNil(channel.properties.attachSerial)
XCTAssertNil(channel.properties.channelSerial)
channel.internal.attachSerial = "foo"
channel.internal.channelSerial = "bar"
XCTAssertEqual(channel.properties.attachSerial, "foo")
XCTAssertEqual(channel.properties.channelSerial, "bar")
}
}

0 comments on commit 80180c3

Please sign in to comment.