1
0
mirror of https://github.com/square/okhttp.git synced 2025-08-08 23:42:08 +03:00

Update dependency software.amazon.cryptools:AmazonCorrettoCryptoProvider to v2 (#7690)

* Update dependency software.amazon.cryptools:AmazonCorrettoCryptoProvider to v2

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Yuri Schimke <yuri@schimke.ee>
This commit is contained in:
renovate[bot]
2023-02-18 13:22:01 +00:00
committed by GitHub
parent 26bccbce44
commit 5ece5e4df7
2 changed files with 3 additions and 2 deletions

View File

@@ -23,6 +23,7 @@ import java.util.logging.Level
import java.util.logging.LogManager
import java.util.logging.LogRecord
import java.util.logging.Logger
import kotlin.concurrent.withLock
import okhttp3.internal.buildConnectionPool
import okhttp3.internal.concurrent.TaskRunner
import okhttp3.internal.connection.RealConnectionPool
@@ -200,7 +201,7 @@ class OkHttpClientTestRule : BeforeEachCallback, AfterEachCallback {
// a test timeout failure.
val waitTime = (entryTime + 1_000_000_000L - System.nanoTime())
if (!queue.idleLatch().await(waitTime, TimeUnit.NANOSECONDS)) {
synchronized (TaskRunner.INSTANCE) {
TaskRunner.INSTANCE.lock.withLock {
TaskRunner.INSTANCE.cancelAll()
}
fail<Unit>("Queue still active after 1000 ms")