Skip to content

Commit 111404c

Browse files
Switch to data-less presence ops in integration tests
Makes it clearer that we don’t care about data in these calls. I should have done this in 4ee16bd.
1 parent e2888e1 commit 111404c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/AblyChatTests/IntegrationTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ struct IntegrationTests {
176176
try await txRoom.attach()
177177

178178
// (4) Enter presence on the other client and check that we receive the updated occupancy on the subscription
179-
try await txRoom.presence.enter(data: nil)
179+
try await txRoom.presence.enter()
180180

181181
// (5) Check that we received an updated presence count on the subscription
182182
_ = try #require(await rxOccupancySubscription.first { occupancyEvent in
@@ -188,7 +188,7 @@ struct IntegrationTests {
188188
#expect(rxOccupancyAfterTxEnter.presenceMembers == 1) // 1 for txClient entering presence
189189

190190
// (7) Leave presence on the other client and check that we receive the updated occupancy on the subscription
191-
try await txRoom.presence.leave(data: nil)
191+
try await txRoom.presence.leave()
192192

193193
// (8) Check that we received an updated presence count on the subscription
194194
_ = try #require(await rxOccupancySubscription.first { occupancyEvent in

0 commit comments

Comments
 (0)