Skip to content

Commit 7f94fe7

Browse files
committed
pause in test
1 parent 7e0c421 commit 7f94fe7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/topics/test_topic_reader.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,16 @@ async def wait(fut):
189189
# Start second reader for same topic, same consumer, partition 1
190190
reader1 = driver.topic_client.reader(topic, consumer=topic_consumer)
191191

192+
await asyncio.sleep(1)
193+
194+
async with driver.topic_client.writer(topic, partition_id=0) as writer:
195+
await writer.write_with_ack("--")
196+
async with driver.topic_client.writer(topic, partition_id=1) as writer:
197+
await writer.write_with_ack("--")
198+
199+
await reader0.receive_message()
200+
await reader0.receive_message()
201+
192202
# receive uncommited message
193203
await reader1.receive_message()
194204

0 commit comments

Comments
 (0)