Skip to content

Commit

Permalink
delete runtest
Browse files Browse the repository at this point in the history
  • Loading branch information
vendelieu committed Dec 24, 2023
1 parent c6b01e4 commit a240ddf
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import io.kotest.core.annotation.EnabledIf
import io.kotest.matchers.booleans.shouldBeTrue
import io.kotest.matchers.nulls.shouldBeNull
import io.kotest.matchers.string.shouldContain
import kotlinx.coroutines.test.runTest

@EnabledIf(ChatTestingOnlyCondition::class)
class ChatGeneralMethodsTest : BotTestContext() {
Expand Down Expand Up @@ -67,15 +66,17 @@ class ChatGeneralMethodsTest : BotTestContext() {
}

@Test
fun `restrict chat member method test`() = runTest {
suspend fun `restrict chat member method test`() {
val result = restrictChatMember(
user = TG_ID.asUser(),
untilDate = CUR_INSTANT.plusMillis(10000).epochSecond,
true,
) {
canChangeInfo = false
}.sendReturning(CHAT_ID, bot).shouldSuccess()

result.shouldBeTrue()

restrictChatMember(TG_ID) {
canChangeInfo = true
}.sendAsync(TG_ID, bot).await()
Expand Down

0 comments on commit a240ddf

Please sign in to comment.