Skip to content

Commit 38ab695

Browse files
Remove unnecessary sleep statements after topic creation in tests
1 parent 1c8f7c7 commit 38ab695

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

streamz/tests/test_kafka.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,6 @@ def test_kafka_batch_npartitions():
255255
"--create --zookeeper localhost:2181 "
256256
"--replication-factor 1 --partitions 2 "
257257
"--topic test-partitions"))
258-
time.sleep(5)
259258

260259
for i in range(10):
261260
if i % 2 == 0:
@@ -304,7 +303,6 @@ def test_kafka_refresh_partitions():
304303
"--create --zookeeper localhost:2181 "
305304
"--replication-factor 1 --partitions 2 "
306305
"--topic test-refresh-partitions"))
307-
time.sleep(2)
308306

309307
for i in range(10):
310308
if i % 2 == 0:
@@ -327,7 +325,6 @@ def test_kafka_refresh_partitions():
327325
"--alter --zookeeper localhost:2181 "
328326
"--topic test-refresh-partitions --partitions 4"))
329327
time.sleep(5)
330-
331328
for i in range(10,20):
332329
if i % 2 == 0:
333330
kafka.produce(TOPIC, b'value-%d' % i, partition=2)
@@ -572,7 +569,6 @@ def test_kafka_checkpointing_auto_offset_reset_latest():
572569
"--create --zookeeper localhost:2181 "
573570
"--replication-factor 1 --partitions 3 "
574571
"--topic test-checkpointing-offset-reset-latest"))
575-
time.sleep(2)
576572

577573
'''
578574
Since the stream has not started yet, these messages are not read because

0 commit comments

Comments
 (0)