diff --git a/cumulus/test/relay-validation-worker-provider/build.rs b/cumulus/test/relay-validation-worker-provider/build.rs index 6b2f482a7d..9b5247bcbe 100644 --- a/cumulus/test/relay-validation-worker-provider/build.rs +++ b/cumulus/test/relay-validation-worker-provider/build.rs @@ -120,6 +120,9 @@ fn add_patches(project_toml: &mut Table) { ) .expect("Workspace root `Cargo.toml` is a valid toml file; qed"); + let mut workspace_path = workspace_toml_path; + workspace_path.pop(); + while let Some(mut patch) = workspace_toml.remove("patch").and_then(|p| p.try_into::