LadyForest commented on a change in pull request #23:
URL: https://github.com/apache/flink-table-store/pull/23#discussion_r811752898



##########
File path: 
flink-table-store-connector/src/test/java/org/apache/flink/table/store/connector/sink/global/GlobalCommitterOperatorTest.java
##########
@@ -166,16 +166,33 @@ public void endOfInput() throws Exception {
         
assertThat(globalCommitter.getCommittedData()).contains("elder+patience+silent");
     }
 
+    @Test
+    public void streamingNoEndOfInput() throws Exception {
+        final DefaultGlobalCommitter globalCommitter = new 
DefaultGlobalCommitter();
+
+        final OneInputStreamOperatorTestHarness<CommittableMessage<String>, 
Void> testHarness =
+                createTestHarness(globalCommitter, false);
+        testHarness.initializeEmptyState();
+        testHarness.open();
+        List<String> input = Arrays.asList("silent", "elder", "patience");
+        testHarness.processElements(committableRecords(input));
+        testHarness.endInput();
+        testHarness.close();
+        assertThat(globalCommitter.getCommittedData()).isEmpty();

Review comment:
        Sorry, I'm typo, I mean 
`assertThat(globalCommitter.getCommittedData()).isEmpty();`




-- 
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