Repository navigation
Commit 2bc9f01
test(mcp): pin the per-call answer file so the race can actually fail a test
The scoping fix in #8 is correct, but none of the five unit tests that shipped
with it distinguish a per-call temp file from a single shared path: each makes
one sequential call and asserts the round-trip, which a fixed path satisfies
identically. Reverting run_recall to a shared ROOT_DIR/_shared_answer.txt left
all 12 tests in the file green.
This test records the BRAIN_ANSWER_OUT value across two calls and asserts the
paths differ and neither file survives. Verified both ways: red on the reverted
shared-path version ("both calls shared one answer file: ..."), green on main,
62 passed overall.
Assisted-by: claude-code/claude-opus-5[1m]
Machine: ZBOOKG8-2023PAL
Account: dzyatkovskiy.a2@gmail.com
Operator: robot:contrib-watch-daily
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 3ce7061 commit 2bc9f01
1 file changed
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
0 commit comments