You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by da...@apache.org on 2022/05/26 20:08:15 UTC
[kafka] branch trunk updated: MINOR: Add timeout to LogOffsetTest (#12213)
This is an automated email from the ASF dual-hosted git repository.
davidarthur pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/trunk by this push:
new 43160bc476 MINOR: Add timeout to LogOffsetTest (#12213)
43160bc476 is described below
commit 43160bc4766891d072f2da8117a0bb65a018dfd8
Author: Jason Gustafson <ja...@confluent.io>
AuthorDate: Thu May 26 13:07:54 2022 -0700
MINOR: Add timeout to LogOffsetTest (#12213)
Reviewers: Kvicii <Ka...@gmail.com>, David Arthur <mu...@gmail.com>
---
core/src/test/scala/unit/kafka/server/LogOffsetTest.scala | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/core/src/test/scala/unit/kafka/server/LogOffsetTest.scala b/core/src/test/scala/unit/kafka/server/LogOffsetTest.scala
index a9d765c5cd..16d5ac8e3b 100755
--- a/core/src/test/scala/unit/kafka/server/LogOffsetTest.scala
+++ b/core/src/test/scala/unit/kafka/server/LogOffsetTest.scala
@@ -25,18 +25,20 @@ import org.apache.kafka.common.protocol.{ApiKeys, Errors}
import org.apache.kafka.common.requests.{FetchRequest, FetchResponse, ListOffsetsRequest, ListOffsetsResponse}
import org.apache.kafka.common.{IsolationLevel, TopicPartition}
import org.junit.jupiter.api.Assertions._
+import org.junit.jupiter.api.Timeout
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.ValueSource
import org.mockito.Mockito.{mock, when}
import org.mockito.invocation.InvocationOnMock
import org.mockito.stubbing.Answer
+
import java.io.File
import java.util.concurrent.atomic.AtomicInteger
import java.util.{Optional, Properties, Random}
-
import scala.collection.mutable.Buffer
import scala.jdk.CollectionConverters._
+@Timeout(300)
class LogOffsetTest extends BaseRequestTest {
private lazy val time = new MockTime