pub fn subsystem_test_harness<M, OverseerFactory, Overseer, TestFactory, Test>(
overseer_factory: OverseerFactory,
test_factory: TestFactory,
)where
OverseerFactory: FnOnce(TestSubsystemContextHandle<M>) -> Overseer,
Overseer: Future<Output = ()>,
TestFactory: FnOnce(TestSubsystemContext<M, SpawnGlue<TaskExecutor>>) -> Test,
Test: Future<Output = ()>,
Expand description
Test a subsystem, mocking the overseer
Pass in two async closures: one mocks the overseer, the other runs the test from the perspective of a subsystem.
Times out in 5 seconds.