You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by GitBox <gi...@apache.org> on 2019/01/03 10:32:53 UTC

[GitHub] asfgit closed pull request #3237: NIFI-5917 Fix TestSelectHiveQL.testNoTimeLimit

asfgit closed pull request #3237: NIFI-5917 Fix TestSelectHiveQL.testNoTimeLimit
URL: https://github.com/apache/nifi/pull/3237
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/nifi-nar-bundles/nifi-hive-bundle/nifi-hive-processors/src/test/java/org/apache/nifi/processors/hive/TestSelectHiveQL.java b/nifi-nar-bundles/nifi-hive-bundle/nifi-hive-processors/src/test/java/org/apache/nifi/processors/hive/TestSelectHiveQL.java
index 484fa67c24..bb8448654f 100644
--- a/nifi-nar-bundles/nifi-hive-bundle/nifi-hive-processors/src/test/java/org/apache/nifi/processors/hive/TestSelectHiveQL.java
+++ b/nifi-nar-bundles/nifi-hive-bundle/nifi-hive-processors/src/test/java/org/apache/nifi/processors/hive/TestSelectHiveQL.java
@@ -134,7 +134,7 @@ public void testNoTimeLimit() throws InitializationException, ClassNotFoundExcep
         invokeOnTrigger(QUERY_WITH_EL, true, "Avro");
 
         final List<ProvenanceEventRecord> provenanceEvents = runner.getProvenanceEvents();
-        assertEquals(2, provenanceEvents.size());
+        assertEquals(3, provenanceEvents.size());
 
         final ProvenanceEventRecord provenance0 = provenanceEvents.get(0);
         assertEquals(ProvenanceEventType.FORK, provenance0.getEventType());
@@ -142,6 +142,9 @@ public void testNoTimeLimit() throws InitializationException, ClassNotFoundExcep
         final ProvenanceEventRecord provenance1 = provenanceEvents.get(1);
         assertEquals(ProvenanceEventType.FETCH, provenance1.getEventType());
         assertEquals("jdbc:derby:target/db;create=true", provenance1.getTransitUri());
+
+        final ProvenanceEventRecord provenance2 = provenanceEvents.get(2);
+        assertEquals(ProvenanceEventType.FORK, provenance2.getEventType());
     }
 
 
diff --git a/nifi-nar-bundles/nifi-hive-bundle/nifi-hive3-processors/src/test/java/org/apache/nifi/processors/hive/TestSelectHive3QL.java b/nifi-nar-bundles/nifi-hive-bundle/nifi-hive3-processors/src/test/java/org/apache/nifi/processors/hive/TestSelectHive3QL.java
index 67f0dd462b..77a20f8c83 100644
--- a/nifi-nar-bundles/nifi-hive-bundle/nifi-hive3-processors/src/test/java/org/apache/nifi/processors/hive/TestSelectHive3QL.java
+++ b/nifi-nar-bundles/nifi-hive-bundle/nifi-hive3-processors/src/test/java/org/apache/nifi/processors/hive/TestSelectHive3QL.java
@@ -134,7 +134,7 @@ public void testNoTimeLimit() throws InitializationException, ClassNotFoundExcep
         invokeOnTrigger(QUERY_WITH_EL, true, "Avro");
 
         final List<ProvenanceEventRecord> provenanceEvents = runner.getProvenanceEvents();
-        assertEquals(2, provenanceEvents.size());
+        assertEquals(3, provenanceEvents.size());
 
         final ProvenanceEventRecord provenance0 = provenanceEvents.get(0);
         assertEquals(ProvenanceEventType.FORK, provenance0.getEventType());
@@ -142,6 +142,9 @@ public void testNoTimeLimit() throws InitializationException, ClassNotFoundExcep
         final ProvenanceEventRecord provenance1 = provenanceEvents.get(1);
         assertEquals(ProvenanceEventType.FETCH, provenance1.getEventType());
         assertEquals("jdbc:derby:target/db;create=true", provenance1.getTransitUri());
+
+        final ProvenanceEventRecord provenance2 = provenanceEvents.get(2);
+        assertEquals(ProvenanceEventType.FORK, provenance2.getEventType());
     }
 
 


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services