Sxnan commented on code in PR #5877:
URL: https://github.com/apache/paimon/pull/5877#discussion_r2199729182
##########
paimon-flink/paimon-flink-common/src/test/java/org/apache/paimon/flink/CatalogTableITCase.java:
##########
@@ -951,10 +952,13 @@ public void testConsumersTable() throws Exception {
batchSql("INSERT INTO T VALUES (1, 2)");
batchSql("INSERT INTO T VALUES (3, 4)");
- BlockingIterator<Row, Row> iterator =
- BlockingIterator.of(
- streamSqlIter(
- "SELECT * FROM T /*+
OPTIONS('consumer-id'='my1','consumer.expiration-time'='3h') */"));
+ CloseableIterator<Row> closeableIterator =
+ streamSqlIter(
+ "SELECT * FROM T /*+
OPTIONS('consumer-id'='my1','consumer.expiration-time'='3h') */");
+ BlockingIterator<Row, Row> iterator =
BlockingIterator.of(closeableIterator);
+
+ // Blocks the main thread until the consumer job is ready.
+ assertThat(closeableIterator).hasNext();
batchSql("INSERT INTO T VALUES (5, 6), (7, 8)");
Review Comment:
Can we just put this line after the assertion?
--
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]