clean warnings

This commit is contained in:
2021-03-03 03:14:04 +01:00
parent d9deb4836e
commit 9fc21f5459
6 changed files with 10 additions and 11 deletions

View File

@@ -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()
}

View File

@@ -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)
)