Skip to content

Commit 63cff6b

Browse files
committed
dokka build
1 parent 6e2085d commit 63cff6b

File tree

2 files changed

+1
-33
lines changed

2 files changed

+1
-33
lines changed

build.gradle.kts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ publishedProjects.forEvery {
169169
mavenPublishing {
170170
configure(
171171
KotlinJvm(
172-
javadocJar = JavadocJar.Dokka("dokkaHtmlJar"),
172+
javadocJar = JavadocJar.Dokka("dokkaGenerateJavadoc"),
173173
sourcesJar = true
174174
)
175175
)
@@ -218,9 +218,3 @@ dokka {
218218
)
219219
}
220220
}
221-
222-
val dokkaHtmlJar by tasks.registering(Jar::class) {
223-
description = "A HTML Documentation JAR containing Dokka HTML"
224-
from(tasks.dokkaGeneratePublicationHtml.flatMap { it.outputDirectory })
225-
archiveClassifier.set("html-doc")
226-
}

lib/quafka/src/test/kotlin/com/trendyol/quafka/consumer/messageHandlers/ResilientHandlerTests.kt

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import io.kotest.assertions.nondeterministic.eventually
88
import io.kotest.assertions.throwables.shouldThrow
99
import io.kotest.core.spec.style.FunSpec
1010
import io.kotest.matchers.collections.shouldHaveSize
11-
import io.kotest.matchers.longs.shouldBeGreaterThan
1211
import io.kotest.matchers.shouldBe
1312
import io.mockk.*
1413
import kotlinx.coroutines.*
@@ -89,31 +88,6 @@ class ResilientHandlerTests :
8988
attemptCount.get() shouldBe 3
9089
}
9190

92-
test("should use exponential backoff") {
93-
// arrange
94-
val handler = ResilientHandler.Retrying.basic<String, String>(initialInterval = 100.milliseconds)
95-
val message = createTestMessage()
96-
val context = createTestContext()
97-
val timestamps = mutableListOf<Long>()
98-
99-
// act
100-
handler.handle(context, listOf(message)) { _, _ ->
101-
timestamps.add(System.currentTimeMillis())
102-
if (timestamps.size < 3) {
103-
throw RuntimeException("Simulated error")
104-
}
105-
}
106-
107-
// assert - delays should increase
108-
timestamps.size shouldBe 3
109-
if (timestamps.size >= 3) {
110-
val firstDelay = timestamps[1] - timestamps[0]
111-
val secondDelay = timestamps[2] - timestamps[1]
112-
// Second delay should be longer than first (exponential backoff)
113-
secondDelay shouldBeGreaterThan firstDelay
114-
}
115-
}
116-
11791
test("basic factory method should work with custom config") {
11892
// arrange
11993
val handler = ResilientHandler.Retrying.basic<String, String>(

0 commit comments

Comments
 (0)