From 1f23a4884553ec07ada9bfb67e475ab2520dee6e Mon Sep 17 00:00:00 2001 From: Dana Powers Date: Thu, 4 Jun 2015 13:34:24 -0700 Subject: Sleep for 500ms before retrying consumer pending call in tests --- test/test_failover_integration.py | 1 + 1 file changed, 1 insertion(+) (limited to 'test/test_failover_integration.py') diff --git a/test/test_failover_integration.py b/test/test_failover_integration.py index 26da615..7cead86 100644 --- a/test/test_failover_integration.py +++ b/test/test_failover_integration.py @@ -201,6 +201,7 @@ class TestFailover(KafkaIntegrationTestCase): # Keep checking if it isn't immediately correct, subject to timeout while pending < check_count and (time.time() - started_at < timeout): pending = consumer.pending(partitions) + time.sleep(0.5) consumer.stop() client.close() -- cgit v1.2.1