refactor tests to remove overseer send and recv timeouts #764
Labels
I3-annoyance
The node behaves within expectations, however this “expected behaviour” itself is at issue.
T10-tests
This PR/Issue is related to tests.
Currently we have a few places with duplicated
fn overseer_send
andfn_overseer_recv
functions: https://cs.github.com/paritytech/polkadot?q=fn+overseer_sendThe subsystems have different test timeouts piled on top of the timeout defined in https://github.com/paritytech/polkadot/blob/15709eee181d927ec80d566e882931776182bdcd/node/subsystem-test-helpers/src/lib.rs#L248-L251
We should remove these functions, lower the timeout to 10s in test-helpers and just use
overseer.send(msg)
(maybe add a helper function so that we don't have to wrap it inFromOrchestra::Communication
) andoverseer.recv
.The low timeouts < 1s create spurious CI errors like https://gitlab.parity.io/parity/mirrors/polkadot/-/jobs/1941785 which we never can reproduce locally.
The text was updated successfully, but these errors were encountered: