Module Rpc_parallel.For_testing
val initialize : Core.Source_code_position.t -> unit
initialize [%here]
must be called at the top level of any files that have inline or expect tests that useRpc_parallel
. Further, these calls must come before the definitions of the tests, but after the definitions of any workers used in the tests.For example:
let () = Rpc_parallel.For_testing.initialize [%here] let%expect_test "" = run_code_with_rpc_parallel (); [%expect {| output |}] ;;