Skip to content

test(cli): assert --max-weight error prints exactly once#183

Open
rocketman-code wants to merge 1 commit intomainfrom
fix/148-max-weight-double-print
Open

test(cli): assert --max-weight error prints exactly once#183
rocketman-code wants to merge 1 commit intomainfrom
fix/148-max-weight-double-print

Conversation

@rocketman-code
Copy link
Owner

Closes #148

Summary

  • Strengthen trace_max_weight_exceeded test to verify the threshold error message appears exactly once in stderr
  • The underlying fix (replacing process::exit(1) with return Err(Error::MaxWeightExceeded{..})) was applied in 2ea1fe6; this adds regression coverage for the duplicate-print behavior

Test plan

  • cargo test --workspace passes
  • cargo clippy --workspace --all-targets -- -D warnings clean
  • cargo fmt --check clean

Strengthen the trace_max_weight_exceeded test to verify the threshold
error message appears exactly once in stderr, preventing regression
of the duplicate-print bug.

Closes #148
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(cli): --max-weight threshold error prints twice

1 participant