Skip to content

Commit

Permalink
refactor(gear-wasm-builder): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fluiderson committed Jul 25, 2023
1 parent 6fe25a4 commit ca8037b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gcli/tests/cmd/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<String>::from(args)).expect("run gcli failed");

Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion gcli/tests/gear.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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| {
Expand Down

0 comments on commit ca8037b

Please sign in to comment.