Skip to content

Commit

Permalink
Merge pull request #118 from ably-labs/fix-intermittent-test-failure
Browse files Browse the repository at this point in the history
Fix intermittent test failure
  • Loading branch information
lawrence-forooghian authored Nov 19, 2024
2 parents 900386e + c6e1877 commit 82cb9ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tests/AblyChatTests/DefaultRoomLifecycleManagerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,9 @@ struct DefaultRoomLifecycleManagerTests {
try await manager.performAttachOperation()

// This is to put the manager into the DETACHING state, to satisfy "with a room lifecycle operation in progress"
let roomStatusSubscription = await manager.onChange(bufferingPolicy: .unbounded)
async let _ = manager.performDetachOperation()
_ = await roomStatusSubscription.first { $0.current == .detaching }

// When: The aforementioned contributor emits an ATTACHED event with `resumed` flag set to false
let contributorStateChange = ARTChannelStateChange(
Expand Down

0 comments on commit 82cb9ff

Please sign in to comment.