From 9d040afe8cb190bca4e65e152c8a3ce302fb03cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Cabrera?= Date: Mon, 8 Jul 2024 09:31:11 -0400 Subject: [PATCH] Assert fuel conditionally When the `experimental_event_loop` feature is enabled, a bit more work is done when executing JS code, therefore there's more fuel usage reported in some tests. --- crates/cli/tests/integration_test.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/cli/tests/integration_test.rs b/crates/cli/tests/integration_test.rs index ab8e85ac..6d769101 100644 --- a/crates/cli/tests/integration_test.rs +++ b/crates/cli/tests/integration_test.rs @@ -96,7 +96,11 @@ fn test_logging() -> Result<()> { "hello world from console.log\nhello world from console.error\n", logs.as_str(), ); - assert_fuel_consumed_within_threshold(34169, fuel_consumed); + if cfg!(feature = "experimental_event_loop") { + assert_fuel_consumed_within_threshold(39602, fuel_consumed); + } else { + assert_fuel_consumed_within_threshold(34169, fuel_consumed); + } Ok(()) }