Skip to content

Commit 70f8c75

Browse files
MichaelGHSegclaude
andcommitted
Wire maxRetries through e2e-cli to SDK builder
maxRetries was parsed from CLIConfig but never passed to the Analytics.builder().retries() call, so the SDK always used its default of 1000 retries regardless of test configuration. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 367c90b commit 70f8c75

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

e2e-cli/src/main/kotlin/cli/Main.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ fun main(args: Array<String>) {
5151

5252
val flushAt = input.config?.flushAt ?: 20
5353
val flushIntervalMs = input.config?.flushInterval ?: 10000L
54+
val maxRetries = input.config?.maxRetries ?: 1000
5455

5556
val flushLatch = CountDownLatch(1)
5657
val hasError = AtomicBoolean(false)
@@ -60,6 +61,7 @@ fun main(args: Array<String>) {
6061
.endpoint(input.apiHost)
6162
.flushQueueSize(flushAt)
6263
.flushInterval(maxOf(flushIntervalMs, 1000L), TimeUnit.MILLISECONDS)
64+
.retries(maxRetries)
6365
.callback(object : Callback {
6466
override fun success(message: Message?) {
6567
// Event sent successfully

0 commit comments

Comments
 (0)