timeabarna commented on a change in pull request #4824:
URL: https://github.com/apache/nifi/pull/4824#discussion_r576801324
##########
File path:
nifi-nar-bundles/nifi-splunk-bundle/nifi-splunk-processors/src/test/java/org/apache/nifi/processors/splunk/TestQuerySplunkIndexingStatus.java
##########
@@ -121,16 +121,44 @@ public void testMoreIncomingFlowFileThanQueryLimit()
throws Exception {
}
@Test
- public void testTimedOutEvents() throws Exception {
+ public void testAckCheckedIsTrueAndFlowFileWithTimedOutEvents() throws
Exception {
// when
- testRunner.enqueue(givenFlowFile(1, System.currentTimeMillis() -
TimeUnit.HOURS.toMillis(2)));
+ testRunner.enqueue(givenFlowFile(1, System.currentTimeMillis() -
TimeUnit.HOURS.toMillis(2), true));
testRunner.run();
// then
Mockito.verify(service, Mockito.never()).send(Mockito.anyString(),
Mockito.any(RequestMessage.class));
testRunner.assertAllFlowFilesTransferred(QuerySplunkIndexingStatus.RELATIONSHIP_UNACKNOWLEDGED,
1);
}
+ @Test
+ public void
testAckCheckedIsFalseAndTimedOutEventFlowFileWithAcknowledgeResponse() throws
Exception {
+ // when
+ final Map<Integer, Boolean> acks = new HashMap<>();
Review comment:
added to singletonMap
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]