From 0e50f33ec678f6d656d488ce8a4537f95bba003e Mon Sep 17 00:00:00 2001 From: Mark Roberts Date: Thu, 24 Apr 2014 00:25:35 -0700 Subject: Fix last remaining test by making autocommit more intuitive --- test/test_consumer_integration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/test_consumer_integration.py b/test/test_consumer_integration.py index 63d2dda..9300021 100644 --- a/test/test_consumer_integration.py +++ b/test/test_consumer_integration.py @@ -228,13 +228,13 @@ class TestConsumerIntegration(KafkaIntegrationTestCase): output_msgs1 = [ consumer1.get_message().message.value for _ in xrange(195) ] self.assert_message_count(output_msgs1, 195) - # The offset should be at 180 + # The total offset across both partitions should be at 180 consumer2 = self.consumer( auto_commit_every_t = 600, auto_commit_every_n = 20, ) - # 180-200 + # 181-200 self.assert_message_count([ message for message in consumer2 ], 20) consumer1.stop() -- cgit v1.2.1