Commit 3f8cf96
committed
fix(test): add serial_test to all env variable tests across workspace
Systematically address potential race conditions in all tests that modify
environment variables by adding serial_test dependency and marking tests
with #[serial_test::serial].
Changes:
- mcp-security-middleware: 3 tests marked serial
- mcp-cli-derive: 1 test marked serial
- mcp-cli: 4 tests marked serial
This prevents flaky test failures in CI when tests run in parallel and
modify the same or overlapping environment variables.
Tests using unique env var names per test (like in mcp-auth) don't need
serialization as they don't conflict with each other.1 parent 2f84189 commit 3f8cf96
File tree
5 files changed
+9
-0
lines changed- mcp-cli-derive
- tests
- mcp-cli
- src
5 files changed
+9
-0
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| 361 | + | |
361 | 362 | | |
362 | 363 | | |
363 | 364 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
| |||
183 | 184 | | |
184 | 185 | | |
185 | 186 | | |
| 187 | + | |
186 | 188 | | |
187 | 189 | | |
188 | 190 | | |
| |||
204 | 206 | | |
205 | 207 | | |
206 | 208 | | |
| 209 | + | |
207 | 210 | | |
208 | 211 | | |
209 | 212 | | |
| |||
231 | 234 | | |
232 | 235 | | |
233 | 236 | | |
| 237 | + | |
234 | 238 | | |
235 | 239 | | |
236 | 240 | | |
| |||
0 commit comments