Skip to content

Commit

Permalink
add repeated test
Browse files Browse the repository at this point in the history
  • Loading branch information
mumrah committed Sep 10, 2024
1 parent a4802b0 commit 01399c1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ import org.apache.kafka.security.PasswordEncoder
import org.apache.kafka.server.common.{ApiMessageAndVersion, MetadataVersion}
import org.apache.kafka.server.fault.FaultHandler
import org.apache.zookeeper.client.ZKClientConfig
import org.junit.jupiter.api.Assertions.{assertTrue, assertEquals, fail}
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.Assertions.{assertEquals, assertTrue, fail}
import org.junit.jupiter.api.RepeatedTest

import java.util
import java.util.concurrent.{CompletableFuture, TimeUnit}
Expand Down Expand Up @@ -135,7 +135,7 @@ class ZkMigrationFailoverTest extends Logging {
future.get(10, TimeUnit.SECONDS)
}

@Test
@RepeatedTest(10)
def testControllerFailoverZkRace(): Unit = {
val zookeeper = new EmbeddedZookeeper()
var zkClient: KafkaZkClient = null
Expand Down Expand Up @@ -288,7 +288,7 @@ class ZkMigrationFailoverTest extends Logging {
}
}

@Test
@RepeatedTest(10)
def testDriverSkipsEventsFromOlderEpoch(): Unit = {
val zookeeper = new EmbeddedZookeeper()
var zkClient: KafkaZkClient = null
Expand Down

0 comments on commit 01399c1

Please sign in to comment.