diff --git a/chat-android/src/test/java/com/ably/chat/RoomLifecycleManagerTest.kt b/chat-android/src/test/java/com/ably/chat/RoomLifecycleManagerTest.kt index 6f6cc73b..b4392e45 100644 --- a/chat-android/src/test/java/com/ably/chat/RoomLifecycleManagerTest.kt +++ b/chat-android/src/test/java/com/ably/chat/RoomLifecycleManagerTest.kt @@ -323,6 +323,7 @@ class RoomLifecycleManagerTest { coEvery { any().attachCoroutine() } coAnswers { val channel = firstArg() 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)