Commit f6db29f
Fix TestFullDIFCConfigFromJSON timeout waiting for backend connections
The test waited 5s for 'Starting MCPG' in stderr, but that message only
prints after NewUnified() returns. NewUnified blocks on registerAllTools()
which tries to connect backends (Docker container launch has a 30s
timeout). The test's assertions only need DIFC guard registration output.
Fix: wait for '[DIFC] Registered guard' instead, which appears before
the blocking backend connections. Remove the health check (requires full
startup) and the now-unused encoding/json import.
Co-authored-by: Copilot <[email protected]>1 parent 20d8dae commit f6db29f
1 file changed
Lines changed: 8 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
412 | 411 | | |
413 | 412 | | |
414 | 413 | | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
423 | 420 | | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
| 421 | + | |
| 422 | + | |
428 | 423 | | |
429 | 424 | | |
430 | 425 | | |
| |||
0 commit comments