You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@crunch.apache.org by jw...@apache.org on 2019/11/15 00:48:57 UTC

[crunch] 02/03: oops should have fixed that one

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 <jw...@apache.org>
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
+}