Skip to content

Commit

Permalink
Update kotlinx-coroutines to v1.10.1 (#4568)
Browse files Browse the repository at this point in the history
* Update kotlinx-coroutines monorepo to v1.10.1

* Remove workaround for CoroutinesTimeout

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Osip Fatkullin <osip.fatkullin@jetbrains.com>
  • Loading branch information
renovate[bot] and osipxd authored Jan 15, 2025
1 parent c61cbe3 commit 01abaa9
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 472 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kotlin = "2.1.0"
kotlinx-html = "0.11.0"
kotlinx-datetime = "0.6.1"
kotlinx-io = "0.6.0"
coroutines = "1.9.0"
coroutines = "1.10.1"
atomicfu = "0.27.0"
serialization = "1.7.3"
binaryCompatibilityValidator = "0.17.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import io.ktor.server.engine.*
import io.ktor.server.netty.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
import io.ktor.test.junit.coroutines.*
import io.mockk.mockkStatic
import io.mockk.verify
import kotlinx.coroutines.debug.junit5.CoroutinesTimeout
import kotlinx.coroutines.delay
import java.net.InetAddress
import java.nio.channels.UnresolvedAddressException
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
* Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.client.engine.cio
Expand All @@ -17,7 +17,7 @@ import io.ktor.server.engine.*
import io.ktor.server.netty.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
import io.ktor.test.junit.coroutines.*
import kotlinx.coroutines.debug.junit5.CoroutinesTimeout
import kotlinx.coroutines.runBlocking
import kotlinx.coroutines.withTimeout
import java.io.File
Expand Down
6 changes: 0 additions & 6 deletions ktor-client/ktor-client-test-base/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,4 @@ kotlin.sourceSets {
api(project(":ktor-shared:ktor-test-base"))
}
}

jvmMain {
dependencies {
implementation(libs.kotlinx.coroutines.debug)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package io.ktor.client.tests.utils
import ch.qos.logback.classic.Level
import ch.qos.logback.classic.Logger
import io.ktor.server.engine.*
import io.ktor.test.junit.coroutines.*
import kotlinx.coroutines.debug.junit5.CoroutinesTimeout
import org.junit.jupiter.api.AfterEach
import org.junit.jupiter.api.BeforeEach
import org.slf4j.LoggerFactory
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
* Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.network.sockets.tests

import io.ktor.network.selector.*
import io.ktor.network.sockets.*
import io.ktor.test.junit.*
import io.ktor.test.junit.coroutines.*
import io.ktor.utils.io.*
import io.mockk.*
import kotlinx.coroutines.asCoroutineDispatcher
import kotlinx.coroutines.debug.junit5.CoroutinesTimeout
import kotlinx.coroutines.runBlocking
import java.net.InetSocketAddress
import java.net.ServerSocket
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
* Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.network.sockets.tests

import io.ktor.network.selector.*
import io.ktor.network.sockets.*
import io.ktor.test.junit.coroutines.*
import io.ktor.utils.io.*
import kotlinx.coroutines.*
import kotlinx.coroutines.debug.junit5.CoroutinesTimeout
import java.io.IOException
import java.nio.channels.CancelledKeyException
import java.nio.channels.ClosedChannelException
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
* Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.network.tls

import io.ktor.network.selector.*
import io.ktor.network.sockets.*
import io.ktor.network.tls.certificates.*
import io.ktor.test.junit.coroutines.*
import io.ktor.util.cio.*
import io.ktor.utils.io.*
import io.netty.bootstrap.ServerBootstrap
Expand All @@ -19,6 +18,7 @@ import io.netty.channel.socket.nio.NioServerSocketChannel
import io.netty.handler.ssl.SslContextBuilder
import io.netty.handler.ssl.SslHandler
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.debug.junit5.CoroutinesTimeout
import kotlinx.coroutines.runBlocking
import java.io.File
import java.io.IOException
Expand Down
3 changes: 1 addition & 2 deletions ktor-server/ktor-server-cio/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
* Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

description = ""
Expand All @@ -24,7 +24,6 @@ kotlin.sourceSets {
dependencies {
api(project(":ktor-server:ktor-server-core", configuration = "testOutput"))
api(libs.logback.classic)
implementation(libs.kotlinx.coroutines.debug)
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
* Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.tests.websocket
Expand All @@ -12,14 +12,14 @@ import io.ktor.server.application.*
import io.ktor.server.testing.*
import io.ktor.server.websocket.*
import io.ktor.server.websocket.WebSockets
import io.ktor.test.junit.coroutines.*
import io.ktor.util.*
import io.ktor.util.reflect.*
import io.ktor.utils.io.charsets.*
import io.ktor.utils.io.core.*
import io.ktor.websocket.*
import kotlinx.coroutines.*
import kotlinx.coroutines.channels.ClosedReceiveChannelException
import kotlinx.coroutines.debug.junit5.CoroutinesTimeout
import kotlinx.io.readByteArray
import kotlin.random.Random
import kotlin.test.*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ package io.ktor.server.test.base
import io.ktor.test.*
import io.ktor.test.dispatcher.*
import io.ktor.test.junit.*
import io.ktor.test.junit.coroutines.*
import kotlinx.coroutines.CoroutineName
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.debug.junit5.CoroutinesTimeout
import kotlinx.coroutines.test.TestResult
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.TestInfo
Expand Down
3 changes: 1 addition & 2 deletions ktor-server/ktor-server-test-suites/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
* Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

description = ""
Expand All @@ -23,7 +23,6 @@ kotlin.sourceSets {
implementation(project(":ktor-server:ktor-server-plugins:ktor-server-conditional-headers"))
implementation(project(":ktor-server:ktor-server-plugins:ktor-server-default-headers"))
implementation(project(":ktor-server:ktor-server-plugins:ktor-server-request-validation"))
implementation(libs.kotlinx.coroutines.debug)
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
* Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.server.testing.suites
Expand All @@ -13,7 +13,7 @@ import io.ktor.network.tls.certificates.*
import io.ktor.server.engine.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
import io.ktor.test.junit.coroutines.*
import kotlinx.coroutines.debug.junit5.CoroutinesTimeout
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
import kotlin.test.Test
Expand Down
4 changes: 2 additions & 2 deletions ktor-shared/ktor-test-base/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
* Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

description = "Common extensions for testing Ktor"
Expand All @@ -16,7 +16,7 @@ kotlin.sourceSets {
dependencies {
api(libs.kotlin.test.junit5)
api(libs.junit)
implementation(libs.kotlinx.coroutines.debug)
api(libs.kotlinx.coroutines.debug)
}
}
}
Loading

0 comments on commit 01abaa9

Please sign in to comment.