snuyanzin commented on code in PR #20991:
URL: https://github.com/apache/flink/pull/20991#discussion_r1047274864


##########
flink-connectors/flink-connector-kafka/src/test/java/org/apache/flink/streaming/connectors/kafka/KafkaITCase.java:
##########
@@ -62,131 +63,154 @@ public static void prepare() throws Exception {
     //  Suite of Tests
     // ------------------------------------------------------------------------
 
-    @Test(timeout = 120000)
-    public void testFailOnNoBroker() throws Exception {
+    @Test
+    @Timeout(120L)
+    void testFailOnNoBroker() throws Exception {
         runFailOnNoBrokerTest();
     }
 
-    @Test(timeout = 60000)
-    public void testConcurrentProducerConsumerTopology() throws Exception {
+    @Test
+    @Timeout(60L)
+    void testConcurrentProducerConsumerTopology() throws Exception {
         runSimpleConcurrentProducerConsumerTopology();
     }
 
-    @Test(timeout = 60000)
-    public void testKeyValueSupport() throws Exception {
+    @Test
+    @Timeout(60L)
+    void testKeyValueSupport() throws Exception {
         runKeyValueTest();
     }
 
     // --- canceling / failures ---
 
-    @Test(timeout = 60000)
-    public void testCancelingEmptyTopic() throws Exception {
+    @Test
+    @Timeout(60L)
+    void testCancelingEmptyTopic() throws Exception {
         runCancelingOnEmptyInputTest();
     }
 
-    @Test(timeout = 60000)
-    public void testCancelingFullTopic() throws Exception {
+    @Test
+    @Timeout(60L)

Review Comment:
   time unit should be specified



##########
flink-connectors/flink-connector-kafka/src/test/java/org/apache/flink/streaming/connectors/kafka/KafkaITCase.java:
##########
@@ -62,131 +63,154 @@ public static void prepare() throws Exception {
     //  Suite of Tests
     // ------------------------------------------------------------------------
 
-    @Test(timeout = 120000)
-    public void testFailOnNoBroker() throws Exception {
+    @Test
+    @Timeout(120L)
+    void testFailOnNoBroker() throws Exception {
         runFailOnNoBrokerTest();
     }
 
-    @Test(timeout = 60000)
-    public void testConcurrentProducerConsumerTopology() throws Exception {
+    @Test
+    @Timeout(60L)
+    void testConcurrentProducerConsumerTopology() throws Exception {
         runSimpleConcurrentProducerConsumerTopology();
     }
 
-    @Test(timeout = 60000)
-    public void testKeyValueSupport() throws Exception {
+    @Test
+    @Timeout(60L)
+    void testKeyValueSupport() throws Exception {
         runKeyValueTest();
     }
 
     // --- canceling / failures ---
 
-    @Test(timeout = 60000)
-    public void testCancelingEmptyTopic() throws Exception {
+    @Test
+    @Timeout(60L)

Review Comment:
   time unit should be specified



##########
flink-connectors/flink-connector-kafka/src/test/java/org/apache/flink/streaming/connectors/kafka/KafkaITCase.java:
##########
@@ -62,131 +63,154 @@ public static void prepare() throws Exception {
     //  Suite of Tests
     // ------------------------------------------------------------------------
 
-    @Test(timeout = 120000)
-    public void testFailOnNoBroker() throws Exception {
+    @Test
+    @Timeout(120L)
+    void testFailOnNoBroker() throws Exception {
         runFailOnNoBrokerTest();
     }
 
-    @Test(timeout = 60000)
-    public void testConcurrentProducerConsumerTopology() throws Exception {
+    @Test
+    @Timeout(60L)
+    void testConcurrentProducerConsumerTopology() throws Exception {
         runSimpleConcurrentProducerConsumerTopology();
     }
 
-    @Test(timeout = 60000)
-    public void testKeyValueSupport() throws Exception {
+    @Test
+    @Timeout(60L)

Review Comment:
   time unit should be specified



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to