Skip to content

Commit

Permalink
Assert fuel conditionally
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
saulecabrera committed Jul 8, 2024
1 parent 6dd1128 commit 9d040af
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/cli/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}

Expand Down

0 comments on commit 9d040af

Please sign in to comment.