clean warnings
This commit is contained in:
@@ -114,9 +114,9 @@ class NotificationConsumerTest {
|
||||
).await()
|
||||
|
||||
/* Check if notifications sent */
|
||||
verify(timeout = 1000) { followArticleRepo.findFollowsByTarget(any()) }
|
||||
verify(timeout = 1000) { emailSender.sendEmail(any()) }
|
||||
verify(timeout = 1000) { asyncCommand.zadd(any<String>(), any<Double>(), any<String>()) }
|
||||
verify(timeout = 2000) { followArticleRepo.findFollowsByTarget(any()) }
|
||||
verify(timeout = 2000) { emailSender.sendEmail(any()) }
|
||||
verify(timeout = 2000) { asyncCommand.zadd(any<String>(), any<Double>(), any<String>()) }
|
||||
|
||||
consumer.close()
|
||||
}
|
||||
|
||||
@@ -78,10 +78,10 @@ fun createCommentOnTarget(
|
||||
content: String? = null
|
||||
) {
|
||||
val commentRepository: CommentRepository by lazy { GlobalContext.get().koin.get() }
|
||||
val createdBy = createCitizen(createdBy)
|
||||
val creator = createCitizen(createdBy)
|
||||
val comment = CommentForUpdate(
|
||||
id = id ?: UUID.randomUUID(),
|
||||
createdBy = createdBy,
|
||||
createdBy = creator,
|
||||
target = target,
|
||||
content = content ?: LoremIpsum().getParagraphs(1, 3)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user