Follow-up to #36791, #36791 (review) by ryanofsky.
#36791 fixed the waitTipChanged timeout on slow hosts, but the template6 waitNext call has the same race: it waits for an event the test triggers after a 0.1s sleep, with a 1s timeout.
This adds long_ipc_timeout and uses it for all waits that end on an event the test triggers.
To reproduce failure on master:
diff --git a/test/functional/interface_ipc_mining.py b/test/functional/interface_ipc_mining.py
index cdef196fd0..49e1c8a9c1 100755
--- a/test/functional/interface_ipc_mining.py
+++ b/test/functional/interface_ipc_mining.py
@@ -320,7 +320,8 @@ class IPCMiningTest(BitcoinTestFramework):
self.log.debug("Wait for another, get one after increase in fees in the mempool")
template6 = await wait_and_do(
mining_wait_next_template(template5, stack, ctx, waitoptions),
- lambda: self.miniwallet.send_self_transfer(fee_rate=10, from_node=self.nodes[0]))
+ lambda: self.miniwallet.send_self_transfer(fee_rate=10, from_node=self.nodes[0]),
+ sleep_time=1.2)
assert template6 is not None
block4 = await mining_get_block(template6, ctx)
assert_equal(len(block4.vtx), 3)