1
0
Files
electrum/tests
SomberNight 5f551183ae tests/test_txbatcher.py: fix race in network.next_tx()
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)
2025-04-01 15:54:05 +00:00
..
2025-03-19 11:59:05 +01:00
2024-04-24 14:14:31 +00:00
2025-02-19 14:29:02 +01:00
2024-06-10 20:22:20 +00:00