diff --git a/substrate/client/executor/wasmtime/src/tests.rs b/substrate/client/executor/wasmtime/src/tests.rs
index e8d7c5ab1afacf5cbc9afbdb18aff34d04b05a27..65093687822d49b650c7a2a639b8a9ac864a202a 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