This is an automated email from the ASF dual-hosted git repository.

jwills pushed a commit to branch jwills_great_version_upgrade
in repository https://gitbox.apache.org/repos/asf/crunch.git

commit f49fa8eafeeb5614e0469ececadb727f858f18fc
Author: Josh Wills <[email protected]>
AuthorDate: Thu Nov 14 16:34:52 2019 -0800

    oops should have fixed that one
---
 .../java/org/apache/crunch/kafka/record/KafkaRecordsIterableIT.java   | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git 
a/crunch-kafka/src/test/java/org/apache/crunch/kafka/record/KafkaRecordsIterableIT.java
 
b/crunch-kafka/src/test/java/org/apache/crunch/kafka/record/KafkaRecordsIterableIT.java
index 9939d64..f996d96 100644
--- 
a/crunch-kafka/src/test/java/org/apache/crunch/kafka/record/KafkaRecordsIterableIT.java
+++ 
b/crunch-kafka/src/test/java/org/apache/crunch/kafka/record/KafkaRecordsIterableIT.java
@@ -388,8 +388,6 @@ public class KafkaRecordsIterableIT {
           entry.getKey().partition(), entry.getValue() + 1, "key", null));
     }
 
-    when(records.isEmpty()).thenReturn(false);
-    when(records.iterator()).thenReturn(returnedRecords.iterator());
     when(mockedConsumer.poll(Matchers.anyLong()))
         //for the fill poll call
         .thenReturn(null)
@@ -413,4 +411,4 @@ public class KafkaRecordsIterableIT {
   private static Map<TopicPartition, Long> getStartOffsets(Properties props, 
String topic) {
     return KafkaUtils.getBrokerOffsets(props, OffsetRequest.EarliestTime(), 
topic);
   }
-}
\ No newline at end of file
+}

Reply via email to