Skip to content

Commit

Permalink
Decrease timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
osipxd committed Dec 13, 2024
1 parent 249255d commit d0c40e2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ val testArrays = testSize.map {
makeArray(it)
}

class ContentTest : ClientLoader(timeout = 5.minutes) {
class ContentTest : ClientLoader() {

@Test
fun testGetFormData() = clientTests {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2014-2023 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.client.tests.plugins
Expand All @@ -25,9 +25,8 @@ import kotlin.coroutines.CoroutineContext
import kotlin.coroutines.resume
import kotlin.coroutines.suspendCoroutine
import kotlin.test.*
import kotlin.time.Duration.Companion.minutes

class ServerSentEventsTest : ClientLoader(timeout = 2.minutes) {
class ServerSentEventsTest : ClientLoader() {

@Test
fun testExceptionIfSseIsNotInstalled() = testSuspend {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2014-2022 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.client.tests
Expand All @@ -14,7 +14,6 @@ import org.slf4j.MDC
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertTrue
import kotlin.time.Duration.Companion.seconds

private class LoggerWithMdc : Logger {
val logs = mutableListOf<Pair<String, String>>()
Expand All @@ -28,7 +27,7 @@ private class LoggerWithMdc : Logger {
}
}

class LoggingTestJvm : ClientLoader(timeout = 1000000.seconds) {
class LoggingTestJvm : ClientLoader() {

@OptIn(InternalAPI::class)
@Test
Expand Down

0 comments on commit d0c40e2

Please sign in to comment.