From 13b3d103cb6da3189a60b042e6951d6e4df9bf8f Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Tue, 9 Apr 2024 21:02:38 +0200 Subject: [PATCH] Fix test --- core/src/jvmTest/kotlin/entity/MessageTest.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/jvmTest/kotlin/entity/MessageTest.kt b/core/src/jvmTest/kotlin/entity/MessageTest.kt index 203bb63a84f..e101a689ad5 100644 --- a/core/src/jvmTest/kotlin/entity/MessageTest.kt +++ b/core/src/jvmTest/kotlin/entity/MessageTest.kt @@ -1,5 +1,6 @@ package dev.kord.core.entity +import dev.kord.common.entity.optional.Optional import dev.kord.core.behavior.MessageBehavior import dev.kord.core.cache.data.MessageData import dev.kord.core.equality.BehaviorEqualityTest @@ -13,6 +14,7 @@ internal class MessageTest : EntityEqualityTest by EntityEqualityTest({ val data = mockk() every { data.id } returns it every { data.channelId } returns it + every { data.poll } returns Optional.Missing() Message(data, kord) }), BehaviorEqualityTest { override fun Message.behavior(): KordEntity = MessageBehavior(messageId = id, channelId = id, kord = kord)