Commit 822a2fd
committed
fix(test): mock returns memory-add envelope so seed doesn't classify as declined
The `re-recording an unchanged binding does not re-seed` test broke after
harness-bot round hardened isPostBindSeeded to count `declined` as
failure (commit 8b19309). The test's mock returned the workspace-list
shape `{datamates:[...]}` for every URL, including the memory POST — the
mirror sees no id in the response and correctly classifies the block as
declined, so the seed stays unfinished and the second `recordApproved
Binding` retries it (5 fetches instead of 3).
Route the mock by URL: memory POST returns `{result:{results:[{id}]}}`,
memory list returns `[]`, everything else keeps the workspace-list
shape. The seed now genuinely completes on first call; the second warm
correctly short-circuits.
All 22 workspace-cache tests green locally.1 parent 86403e1 commit 822a2fd
1 file changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
229 | 235 | | |
230 | 236 | | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
231 | 253 | | |
232 | 254 | | |
233 | 255 | | |
| |||
0 commit comments