Skip to content

Commit

Permalink
sc-executor-wasmtime: Do not use absolute path to Cargo.toml in test (
Browse files Browse the repository at this point in the history
paritytech#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 <>
  • Loading branch information
bkchr authored Jun 13, 2023
1 parent 8e2fba0 commit 297b394
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions client/executor/wasmtime/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 297b394

Please sign in to comment.