fix(tests): call the mutating reconcile budget outside #expect
cmuxTests does not compile on the macOS 15 lane (Xcode 26.3) since https://github.com/manaflow-ai/cmux/pull/16158: CloudWorkspaceLiveProjectionTests.swift:341/343/345: error: cannot use mutating member on immutable value: '$0' is immutable (https://github.com/manaflow-ai/cmux/actions/runs/36789204169). The test passes the mutating budget.admit(...) straight to #expect; Xcode 26.3's macro expansion evaluates it inside a closure where budget is immutable. Xcode 26.6 accepts it, so the glaeda lane stays green.
Each admit result is now bound to a local first and then checked. The assertions are unchanged.
Changelog
- No user-facing change. Fixes the test build on Xcode 26.3.
🤖 Generated with Claude Code
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.
Summary by cubic
Fixes cmuxTests failing to compile on Xcode 26.3 (macOS 15 lane) by binding mutating budget.admit(...) results to locals before passing them to #expect. The macro expansion previously evaluated the argument in a closure where budget is immutable, causing "cannot use mutating member on immutable value". Assertions and behavior are unchanged.
Summary by CodeRabbit
- Tests
- Clarified checks that admissions succeed up to the configured limit, reject an additional admission for the same graph, and allow a newer graph to start with a fresh limit.