Commit 4a2e79c
committed
Re-enable 3 flaky multi-client session resume tests via isolated Surefire execution
The tests were @disabled in PR 171 due to timeouts, but pass reliably in
isolation. Rather than leaving them disabled, use a JUnit 5 @tag and a
separate Surefire execution to run them in their own forked JVM, avoiding
harness state leakage from the main test suite.
pom.xml:
- Add <executions> block to maven-surefire-plugin with two executions:
1. "default-test": runs all tests EXCEPT those tagged "isolated-resume"
2. "isolated-resume-tests": runs ONLY tests tagged "isolated-resume"
- Each execution forks a separate JVM, providing process-level isolation.
src/test/java/com/github/copilot/sdk/CopilotSessionTest.java:
- Remove @disabled annotation from testShouldResumeSessionUsingNewClient
- Add @tag("isolated-resume") to the test method
- Replace 'import Disabled' with 'import Tag'
src/test/java/com/github/copilot/sdk/StreamingFidelityTest.java:
- Remove @disabled from testShouldProduceDeltasAfterSessionResume
- Remove @disabled from testShouldNotProduceDeltasAfterSessionResumeWithStreamingDisabled
- Add @tag("isolated-resume") to both test methods
- Replace 'import Disabled' with 'import Tag'1 parent 8074cce commit 4a2e79c
3 files changed
Lines changed: 31 additions & 8 deletions
File tree
- src/test/java/com/github/copilot/sdk
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
330 | | - | |
331 | | - | |
332 | | - | |
| 330 | + | |
| 331 | + | |
333 | 332 | | |
334 | 333 | | |
335 | 334 | | |
| |||
346 | 345 | | |
347 | 346 | | |
348 | 347 | | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
349 | 372 | | |
350 | 373 | | |
351 | 374 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
| 310 | + | |
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| |||
0 commit comments