Skip to content

Commit

Permalink
detekt
Browse files Browse the repository at this point in the history
  • Loading branch information
augustocdias committed Nov 17, 2023
1 parent c323087 commit d042c1c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,10 @@ class MonkeyApplication : CliktCommand(allowMultipleSubcommands = true) {
logger.i("Creating initial key packages for clients (logging everyone in and out). This can take a while...")
monkeyPool.warmUp(coreLogic)
logger.i("Creating prefixed groups")
try {
testData.conversationDistribution.forEach { (prefix, config) ->
ConversationPool.createPrefixedConversations(
coreLogic, prefix, config.groupCount, config.userCount, config.protocol, monkeyPool
)
}
} catch (e: Exception) {
logger.e("Error $e")
testData.conversationDistribution.forEach { (prefix, config) ->
ConversationPool.createPrefixedConversations(
coreLogic, prefix, config.groupCount, config.userCount, config.protocol, monkeyPool
)
}
}
logger.i("Running setup for test case ${testCase.name}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,10 @@ class Monkey(val monkeyType: MonkeyType) {
}

suspend fun createConversation(
name: String, monkeyList: List<Monkey>, protocol: ConversationOptions.Protocol, isDestroyable: Boolean = true
name: String,
monkeyList: List<Monkey>,
protocol: ConversationOptions.Protocol,
isDestroyable: Boolean = true
): MonkeyConversation {
val self = this
return this.monkeyState.readyThen {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import com.wire.kalium.monkeys.conversation.Monkey
import com.wire.kalium.monkeys.importer.Team
import com.wire.kalium.monkeys.importer.UserCount
import com.wire.kalium.monkeys.importer.UserData
import com.wire.kalium.monkeys.logger
import io.micrometer.core.instrument.Tag
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.launch
Expand Down

0 comments on commit d042c1c

Please sign in to comment.