Skip to content

Commit 8d03e8a

Browse files
committed
Fixing test with sleep
1 parent f059dc3 commit 8d03e8a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/integration/consumer/test_consumer_topicpartition_metadata.py

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# See the License for the specific language governing permissions and
1616
# limit
1717

18+
import time
1819
from confluent_kafka import TopicPartition
1920

2021

@@ -34,6 +35,7 @@ def test_consumer_topicpartition_metadata(kafka_cluster):
3435
consumer_conf = {'group.id': 'pytest'}
3536

3637
c = kafka_cluster.consumer(consumer_conf)
38+
time.sleep(2)
3739

3840
# Commit without any metadata.
3941
metadata = None

0 commit comments

Comments
 (0)