Skip to content

Commit

Permalink
Fixed flaky test for RoomLifecycleManager, when room enters failed state
Browse files Browse the repository at this point in the history
  • Loading branch information
sacOO7 committed Nov 11, 2024
1 parent fb9bc43 commit 8c96226
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ class RoomLifecycleManagerTest {
coEvery { any<io.ably.lib.realtime.Channel>().attachCoroutine() } coAnswers {
val channel = firstArg<io.ably.lib.realtime.Channel>()
if ("typing" in channel.name) {
delay(500)
// Throw error for typing contributor, likely to throw because it uses different channel
val error = ErrorInfo("error attaching channel ${channel.name}", 500)
channel.setState(ChannelState.failed, error)
Expand Down

0 comments on commit 8c96226

Please sign in to comment.