Skip to content

Commit

Permalink
try changing failure output'
Browse files Browse the repository at this point in the history
  • Loading branch information
elfedy committed Jan 21, 2025
1 parent ff1d123 commit e7f651c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nextest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ jobs:
SVM_TARGET_PLATFORM: linux-amd64
HTTP_ARCHIVE_URLS: ${{ secrets.HTTP_ARCHIVE_URLS }}
WS_ARCHIVE_URLS: ${{ secrets.WS_ARCHIVE_URLS }}
run: cargo nextest run -E 'kind(test) & !test(/issue|forge_std|ext_integration|zk|test_zk_aave_di/)' --partition count:3/3 --no-capture
run: cargo nextest run -E 'kind(test) & !test(/issue|forge_std|ext_integration|zk|test_zk_aave_di/)' --partition count:3/3 --no-capture --failure-output immediate-final
8 changes: 4 additions & 4 deletions crates/forge/src/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -669,8 +669,8 @@ impl<'a> FunctionRunner<'a> {
match invariant_result.error {
// If invariants were broken, replay the error to collect logs and traces
Some(error) => match error {
InvariantFuzzError::BrokenInvariant(case_data)
| InvariantFuzzError::Revert(case_data) => {
InvariantFuzzError::BrokenInvariant(case_data) |
InvariantFuzzError::Revert(case_data) => {
// Replay error to create counterexample and to collect logs, traces and
// coverage.
match replay_error(
Expand Down Expand Up @@ -788,8 +788,8 @@ impl<'a> FunctionRunner<'a> {
let address = self.setup.address;

// Apply before test configured functions (if any).
if self.cr.contract.abi.functions().filter(|func| func.name.is_before_test_setup()).count()
== 1
if self.cr.contract.abi.functions().filter(|func| func.name.is_before_test_setup()).count() ==
1
{
for calldata in self
.executor
Expand Down
2 changes: 2 additions & 0 deletions crates/forge/tests/it/invariant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,8 @@ async fn test_invariant_roll_fork_handler() {
});
let results = runner.test_collect(&filter);
error!("AAAAAAAAAAAAAH");
eprintln!("In Stderrr");
println!("In Stdout");
assert_multiple(
&results,
BTreeMap::from([
Expand Down

0 comments on commit e7f651c

Please sign in to comment.