pub fn make_buffered_subsystem_context<M, S>(
spawner: S,
buffer_size: usize,
) -> (TestSubsystemContext<M, SpawnGlue<S>>, TestSubsystemContextHandle<M>)
Expand description
Make a test subsystem context with buffered overseer channel. Some tests (e.g.
dispute-coordinator
) create too many parallel operations and deadlock unless
the channel is buffered. Usually buffer_size=1
is enough.