Skip to content

Improve error handling in write_manifest test helper function #62

@coderabbitai

Description

@coderabbitai

The write_manifest function in tests/support/mod.rs (line 109) currently panics on write errors using .expect().

Current code:

.expect("write manifest content");

Improvement needed:

  • Refactor function to return a Result type
  • Propagate errors instead of panicking
  • Enable clearer diagnostics when manifest writing fails

This change would provide better error handling and make test failures more debuggable.

Backlinks:

Requested by: @leynos

Metadata

Metadata

Assignees

Labels

mediumCould be disruptive, but might not happen

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions