Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve test/test_consumer_integration.py in GitHub runner (#194)
test/test_consumer_integration.py::test_kafka_consumer__blocking failed in https://github.com/wbarnha/kafka-python-ng/actions/runs/10361086008/job/28680735389?pr=186 because it took 592ms to finish. Output from the GitHub runner attached This commit increase TIMEOUT_MS so it is less likely to fail on GitHub runner. # Ask for 5 messages, 10 in queue. Get 5 back, no blocking messages = [] with Timer() as t: for i in range(5): msg = next(consumer) messages.append(msg) assert_message_count(messages, 5) > assert t.interval < (TIMEOUT_MS / 1000.0) E assert 0.5929090976715088 < (500 / 1000.0) E + where 0.5929090976715088 = <test.testutil.Timer object at 0x7f6c4b50e960>.interval Co-authored-by: William Barnhart <[email protected]>
- Loading branch information