From 1eb3b31ad0f820a6fbc1097e482b9ad572c79942 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bastian=20K=C3=B6cher?= <git@kchr.de>
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 <>
---
 substrate/client/executor/wasmtime/src/tests.rs | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/substrate/client/executor/wasmtime/src/tests.rs b/substrate/client/executor/wasmtime/src/tests.rs
index e8d7c5ab1af..65093687822 100644
--- a/substrate/client/executor/wasmtime/src/tests.rs
+++ b/substrate/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
-- 
GitLab