Skip to content

test: fix the tole-cli lib tests that no longer compile on develop - #815

Merged
ajianaz merged 1 commit into
developfrom
test/fix-cli-lib-tests
Nov 15, 2026
Merged

ajianaz merged 1 commit into
developfrom
test/fix-cli-lib-tests

Conversation

@ajianaz

@ajianaz ajianaz commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

What

Fixes the tole-cli lib test build on develop (16 E0599 errors in src/discuss/host_tests.rs).

Why

Refs #781. The conversion PR #795 changed the test helper log(tag) to return (DiscussionLog, TestDir). Charge tests added to develop in parallel (#752/#805) still call it as a bare DiscussionLog, so the semantic merge no longer compiles and develop CI is red.

Changes

  • crates/tole-cli/src/discuss/host_tests.rs: the 8 new call sites bind let (l, _dir) = log(..), keeping the guard alive for the test. 8 lines.

Testing

  • cargo test -p tole-cli --lib with a private TMPDIR: 583 passed, no tole-* entry left.
  • cargo fmt --all, cargo clippy --workspace --all-targets -- -D warnings: clean.

Refs #781

Refs #781. The discussion charge tests added by #752/#805 still used log() as if it returned a bare DiscussionLog; it now returns the log with its TestDir guard.
@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit 8fdcb17 into develop Nov 15, 2026
22 checks passed
@ajianaz
ajianaz deleted the test/fix-cli-lib-tests branch November 20, 2026 08:40
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.

2 participants