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
..
2024-06-07 10:58:26 +00:00
2025-03-19 13:03:38 +01:00
2024-02-26 18:54:21 +00:00
2024-11-25 12:31:38 +01:00
2024-11-20 12:05:14 +01:00
2025-02-19 14:29:02 +01:00
2025-01-10 18:52:53 +00:00
2025-03-19 11:59:05 +01:00
2024-05-20 16:57:11 +02:00
2024-10-11 18:46:30 +00:00
2024-09-16 15:27:45 +00:00
2024-04-24 14:14:31 +00:00
2025-03-14 18:15:04 +01:00
2025-03-19 13:03:38 +01:00
2024-02-16 15:40:45 +01:00
2024-02-16 15:40:45 +01:00
2024-10-10 15:46:00 +00:00
2025-03-05 10:29:26 +01:00
2024-02-16 15:40:45 +01:00
2025-03-14 17:19:41 +00:00
2024-11-25 12:31:38 +01:00
2024-02-16 15:40:45 +01:00
2025-01-17 10:33:56 +01:00
2025-04-01 14:12:02 +02:00
2025-02-19 14:29:02 +01:00
2025-03-04 15:49:22 +00:00
2024-02-16 15:40:45 +01:00
2025-03-09 12:30:02 +01:00
2024-06-10 20:22:20 +00:00
2024-02-16 15:40:45 +01:00
2024-10-25 01:10:58 +02:00
2025-02-20 18:05:21 +01:00
2024-05-29 10:22:28 +02:00
2024-09-16 15:27:45 +00:00
2024-02-16 15:40:45 +01:00
2024-02-16 15:40:45 +01:00
2025-03-05 10:29:26 +01:00
2024-02-26 18:54:21 +00:00
2025-01-10 11:59:15 +00:00
2025-04-01 15:54:05 +00:00
2025-03-05 17:06:04 +00:00
2024-02-16 15:40:45 +01:00
2025-03-14 17:19:41 +00:00
2024-02-16 15:40:45 +01:00
2025-03-17 16:27:33 +01:00
2024-02-16 15:40:45 +01:00