You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2022/09/12 09:47:28 UTC
[GitHub] [flink] snuyanzin commented on a diff in pull request #20168: [FLINK-28324][flink-sql-client][JUnit5 Migration] Module: flink-sql-client
snuyanzin commented on code in PR #20168:
URL: https://github.com/apache/flink/pull/20168#discussion_r968207924
##########
flink-table/flink-sql-client/src/test/java/org/apache/flink/table/client/gateway/local/LocalExecutorITCase.java:
##########
@@ -358,8 +370,9 @@ public void testBatchQueryExecution() throws Exception {
}
}
- @Test(timeout = 90_000L)
- public void testBatchQueryExecutionMultipleTimes() throws Exception {
+ @Test
+ @Timeout(90)
Review Comment:
Since JUnit 5 supports specification of timeunits it would be much more convenient (code will be more readable) to use them like
```java
@Timeout(value = 90, unit = TimeUnit.SECONDS)
```
or
```java
@Timeout(value = 90, unit = TimeUnit.MILLISECONDS)
```
##########
flink-table/flink-sql-client/src/test/java/org/apache/flink/table/client/gateway/local/LocalExecutorITCase.java:
##########
@@ -312,8 +323,9 @@ public void testStreamQueryExecutionLimitedTable() throws Exception {
executeStreamQueryTable(replaceVars, configMap, query, expectedResults);
}
- @Test(timeout = 90_000L)
- public void testBatchQueryExecution() throws Exception {
+ @Test
+ @Timeout(90)
Review Comment:
Since JUnit 5 supports specification of timeunits it would be much more convenient to use them like
```java
@Timeout(value = 90, unit = TimeUnit.SECONDS)
```
or
```java
@Timeout(value = 90, unit = TimeUnit.MILLISECONDS)
```
##########
flink-table/flink-sql-client/src/test/java/org/apache/flink/table/client/gateway/local/LocalExecutorITCase.java:
##########
@@ -291,8 +301,9 @@ public void testStreamQueryExecutionTableMultipleTimes() throws Exception {
}
}
- @Test(timeout = 90_000L)
- public void testStreamQueryExecutionLimitedTable() throws Exception {
+ @Test
+ @Timeout(90)
Review Comment:
Since JUnit 5 supports specification of timeunits it would be much more convenient to use them like
```java
@Timeout(value = 90, unit = TimeUnit.SECONDS)
```
or
```java
@Timeout(value = 90, unit = TimeUnit.MILLISECONDS)
```
--
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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org