With `txbatcher.SLEEP_INTERVAL = 0.01`, on my laptop, the batcher called try_broadcasting() even before next_tx() effectively awaited _tx_event. This resulted in the test failing due to timeout. Basically, if the txbatcher.SLEEP_INTERVAL was too low, the 2-4 event loop iterations needed to await _tx_event.wait() took too long. (note that the exact number of event loop iterations needed depends on the python version and the OS)
11 KiB
11 KiB