Commit 5d49835
fix(tests): E2E tests use isolated config and instance-scoped container cleanup
Two issues were causing E2E tests to fail:
1. Tests loaded user's real ~/.mcpproxy/mcp_config.json instead of a clean
test config, causing connection attempts to 15+ real upstream servers.
Fixed by creating minimal config files in test temp directories.
2. Docker container cleanup affected ALL mcpproxy instances on the machine,
not just the test instance. This caused 15+ second shutdown delays as
the test server tried to clean up containers from other running instances.
Fixed by filtering container operations by instance ID label.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 41fccb9 commit 5d49835
3 files changed
Lines changed: 45 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
39 | 48 | | |
40 | 49 | | |
41 | 50 | | |
| |||
49 | 58 | | |
50 | 59 | | |
51 | 60 | | |
| 61 | + | |
52 | 62 | | |
53 | 63 | | |
54 | 64 | | |
| |||
150 | 160 | | |
151 | 161 | | |
152 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
153 | 172 | | |
154 | 173 | | |
155 | 174 | | |
| |||
163 | 182 | | |
164 | 183 | | |
165 | 184 | | |
| 185 | + | |
166 | 186 | | |
167 | 187 | | |
168 | 188 | | |
| |||
244 | 264 | | |
245 | 265 | | |
246 | 266 | | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
247 | 276 | | |
248 | 277 | | |
249 | 278 | | |
250 | 279 | | |
251 | 280 | | |
252 | 281 | | |
253 | 282 | | |
| 283 | + | |
254 | 284 | | |
255 | 285 | | |
256 | 286 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
| 619 | + | |
619 | 620 | | |
620 | | - | |
| 621 | + | |
621 | 622 | | |
622 | 623 | | |
623 | 624 | | |
624 | 625 | | |
625 | 626 | | |
626 | | - | |
| 627 | + | |
| 628 | + | |
627 | 629 | | |
628 | 630 | | |
| 631 | + | |
629 | 632 | | |
630 | 633 | | |
631 | 634 | | |
| |||
1141 | 1144 | | |
1142 | 1145 | | |
1143 | 1146 | | |
1144 | | - | |
| 1147 | + | |
1145 | 1148 | | |
1146 | | - | |
| 1149 | + | |
1147 | 1150 | | |
1148 | 1151 | | |
1149 | 1152 | | |
| 1153 | + | |
1150 | 1154 | | |
1151 | | - | |
| 1155 | + | |
| 1156 | + | |
1152 | 1157 | | |
1153 | 1158 | | |
1154 | 1159 | | |
| |||
0 commit comments