From 297b3948f4a0f7f6504d4b654e16cb5d9201e523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Tue, 13 Jun 2023 21:14:53 +0200 Subject: [PATCH] sc-executor-wasmtime: Do not use absolute path to `Cargo.toml` in test (#14370) * sc-executor-wasmtime: Do not use absolute path to `Cargo.toml` in test As the test is executed inside the workspace, `cargo metadata` will automatically detect the correct `Cargo.toml`. This is required for the mono repo. * ".git/.scripts/commands/fmt/fmt.sh" --------- Co-authored-by: command-bot <> --- client/executor/wasmtime/src/tests.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/client/executor/wasmtime/src/tests.rs b/client/executor/wasmtime/src/tests.rs index e8d7c5ab1afac..65093687822d4 100644 --- a/client/executor/wasmtime/src/tests.rs +++ b/client/executor/wasmtime/src/tests.rs @@ -500,10 +500,7 @@ fn test_instances_without_reuse_are_not_leaked() { #[test] fn test_rustix_version_matches_with_wasmtime() { - let metadata = cargo_metadata::MetadataCommand::new() - .manifest_path("../../../Cargo.toml") - .exec() - .unwrap(); + let metadata = cargo_metadata::MetadataCommand::new().exec().unwrap(); let wasmtime_rustix = metadata .packages