Skip to content

app record: one case is written, and earlier cases only when there were some - #1284

Open
jakalijey wants to merge 1 commit into
erkamyaman:mainfrom
jakalijey:fix/1259-timeout-message
Open

jakalijey wants to merge 1 commit into
erkamyaman:mainfrom
jakalijey:fix/1259-timeout-message

Conversation

@jakalijey

Copy link
Copy Markdown

Fixes #1259

  • src/app.rs:
    • recording_dropped takes had_recording. update_recorded_cases passes whether previous (the earlier config of the same kind, CLI or HTTP) recorded any cases.
    • With one case written the message reads "The 1 that did is written"; two or more keep "are written".
    • "the cases recorded before were kept" is said in both messages (the zero-case one too) only when had_recording is true.
  • tests/app_stale.rs: new a_first_recording_with_a_case_that_times_out_says_what_it_wrote records a fresh folder with one fast and one slow input through record_within with a 1-second timeout, and checks the error contains "The 1 that did is written." and not "recorded before".
  • CHANGELOG.md: one line under Unreleased.

Checked: cargo test --test app_stale -- a_first_recording_with a_recorded_case_whose_input_times_out (both pass; the existing test had a recording before, and its message still says the earlier cases were kept), cargo clippy --all-targets -- -D warnings and cargo fmt --check.

@coderabbitai

coderabbitai Bot commented Dec 3, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 5 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 5d5d3fe and 596438a.

Files selected for processing: 3

  • CHANGELOG.md
  • src/app.rs
  • tests/app_stale.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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.

app record's timeout error says "The 1 that did are written" and mentions cases recorded before on a first recording

1 participant