Skip to content

Commit

Permalink
generate random cosnumer group
Browse files Browse the repository at this point in the history
  • Loading branch information
quentin-quix committed Mar 3, 2025
1 parent cf3bfdb commit df7381a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/test_quixstreams/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2419,7 +2419,7 @@ def on_message_processed(topic_, partition, offset):
assert row.timestamp == timestamp_ms
assert row.headers == headers

def test_group_by(
def test_group_by_foo(
self,
app_factory,
row_consumer_factory,
Expand Down Expand Up @@ -2528,7 +2528,7 @@ def printB(value):
done = Future()

# Stop app when the future is resolved
executor.submit(_stop_app_on_future, app, done, 10.0)
executor.submit(_stop_app_on_future, app, done, 30.0)
app.run()

# Check that all messages have been processed
Expand All @@ -2540,10 +2540,12 @@ def printB(value):
(account_id, output_topic_account),
]:
rows = []
with row_consumer_factory(auto_offset_reset="earliest") as row_consumer:
with row_consumer_factory(
auto_offset_reset="earliest", consumer_group=str(uuid.uuid4())
) as row_consumer:
print(f"SUBSCRIBING TO TOPIC {output_topic} at {time.time()}")
row_consumer.subscribe([output_topic])
while row := row_consumer.poll_row(timeout=20):
while row := row_consumer.poll_row(timeout=10):
rows.append(row)

print(f"ROWS: {rows} at {time.time()}")
Expand Down

0 comments on commit df7381a

Please sign in to comment.