If batch is active and final punt is received, then the flushTuples() methods returns to early.
The active batch is not considered.
Hence the test case test_insert_sample_batch_complete fails since the number of expected tuples on output port is not reached.
If batch is active and final punt is received, then the
flushTuples()
methods returns to early. The active batch is not considered. Hence the test casetest_insert_sample_batch_complete
fails since the number of expected tuples on output port is not reached.