From ca8037b874ffaa2487ecccb08f9566de707cec98 Mon Sep 17 00:00:00 2001 From: Fluid Date: Tue, 25 Jul 2023 08:13:46 +0300 Subject: [PATCH] refactor(gear-wasm-builder): fix tests --- gcli/tests/cmd/program.rs | 4 ++-- gcli/tests/gear.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gcli/tests/cmd/program.rs b/gcli/tests/cmd/program.rs index 94255e1def6..7464aa13153 100644 --- a/gcli/tests/cmd/program.rs +++ b/gcli/tests/cmd/program.rs @@ -94,7 +94,7 @@ Metadata { #[test] fn test_command_program_metadata_works() -> Result<()> { - let meta = env::example_path("new-meta/demo_new_meta.meta.txt"); + let meta = env::wasm_bin("demo_new_meta.meta.txt"); let args = Args::new("program").action("meta").meta(meta); let result = common::gcli(Vec::::from(args)).expect("run gcli failed"); @@ -109,7 +109,7 @@ fn test_command_program_metadata_works() -> Result<()> { #[test] fn test_command_program_metadata_derive_works() -> Result<()> { - let meta = env::example_path("new-meta/demo_new_meta.meta.txt"); + let meta = env::wasm_bin("demo_new_meta.meta.txt"); let args = Args::new("program") .action("meta") .meta(meta) diff --git a/gcli/tests/gear.rs b/gcli/tests/gear.rs index 53d134d313a..e1915f81e3f 100644 --- a/gcli/tests/gear.rs +++ b/gcli/tests/gear.rs @@ -37,7 +37,7 @@ fn paths() { env::bin("gear"), env::bin("gcli"), env::wasm_bin("demo_new_meta.opt.wasm"), - env::example_path("new-meta/demo_new_meta.meta.txt"), + env::wasm_bin("demo_new_meta.meta.txt"), ] .into_iter() .for_each(|path| {