From 2c4f4f20c78be70d2908f0383918afb98a03494c Mon Sep 17 00:00:00 2001 From: maciektr Date: Thu, 4 Apr 2024 20:38:00 +0200 Subject: [PATCH] Fix asserts with time units commit-id:38e43ae7 --- extensions/scarb-cairo-run/tests/arguments.rs | 8 ++++---- extensions/scarb-cairo-run/tests/examples.rs | 4 ++-- scarb/tests/build.rs | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/extensions/scarb-cairo-run/tests/arguments.rs b/extensions/scarb-cairo-run/tests/arguments.rs index b7f60ec2e..108faed06 100644 --- a/extensions/scarb-cairo-run/tests/arguments.rs +++ b/extensions/scarb-cairo-run/tests/arguments.rs @@ -94,7 +94,7 @@ fn array_instead_of_felt() { #[cfg(windows)] snapbox.stdout_matches(indoc! {r#" Compiling hello v0.1.0 ([..]Scarb.toml) - Finished release target(s) in [..] seconds + Finished release target(s) in [..] Running hello error: failed to run the function @@ -105,7 +105,7 @@ fn array_instead_of_felt() { #[cfg(not(windows))] snapbox.stdout_matches(indoc! {r#" Compiling hello v0.1.0 ([..]Scarb.toml) - Finished release target(s) in [..] seconds + Finished release target(s) in [..] Running hello error: failed to run the function @@ -238,7 +238,7 @@ fn invalid_struct_deserialization() { #[cfg(windows)] snapbox.stdout_matches(indoc! {r#" Compiling hello v0.1.0 ([..]Scarb.toml) - Finished release target(s) in [..] seconds + Finished release target(s) in [..] Running hello error: failed to run the function @@ -249,7 +249,7 @@ fn invalid_struct_deserialization() { #[cfg(not(windows))] snapbox.stdout_matches(indoc! {r#" Compiling hello v0.1.0 ([..]Scarb.toml) - Finished release target(s) in [..] seconds + Finished release target(s) in [..] Running hello error: failed to run the function diff --git a/extensions/scarb-cairo-run/tests/examples.rs b/extensions/scarb-cairo-run/tests/examples.rs index a3b2b68d5..658f6d7a5 100644 --- a/extensions/scarb-cairo-run/tests/examples.rs +++ b/extensions/scarb-cairo-run/tests/examples.rs @@ -128,7 +128,7 @@ fn can_disable_gas() { #[cfg(windows)] snapbox.stdout_matches(indoc! {r#" Compiling hello_world v0.1.0 ([..]Scarb.toml) - Finished release target(s) in [..] seconds + Finished release target(s) in [..] Running hello_world error: program requires gas counter, please provide `--available-gas` argument error: process did not exit successfully: exit code: 1 @@ -136,7 +136,7 @@ fn can_disable_gas() { #[cfg(not(windows))] snapbox.stdout_matches(indoc! {r#" Compiling hello_world v0.1.0 ([..]Scarb.toml) - Finished release target(s) in [..] seconds + Finished release target(s) in [..] Running hello_world error: program requires gas counter, please provide `--available-gas` argument "#}); diff --git a/scarb/tests/build.rs b/scarb/tests/build.rs index f0c27401a..a95dd6d56 100644 --- a/scarb/tests/build.rs +++ b/scarb/tests/build.rs @@ -822,7 +822,7 @@ fn warnings_allowed_by_default() { let a = 41; ^ - Finished release target(s) in [..] seconds + Finished release target(s) in [..] "#}); }