Commit c858269
fix(test): use ephemeral port for ExtensionLifecycleIntegrationTest
testOnMethodUnattended in BTraceFunctionalTests leaks its target JVM
process without stopping it, leaving the BTrace agent bound to port
2020 indefinitely. ExtensionLifecycleIntegrationTest then fails with
"Port 2020 unavailable" because the port is never released.
Fix by adding btracePort field to RuntimeTest that passes -p <port>
to the btrace Loader, and using ServerSocket(0) in the lifecycle tests
to pick a fresh ephemeral port for each test, avoiding the conflict
entirely.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent b4f734f commit c858269
2 files changed
Lines changed: 23 additions & 27 deletions
File tree
- integration-tests/src/test/java/tests
Lines changed: 12 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
73 | 58 | | |
74 | | - | |
75 | 59 | | |
76 | 60 | | |
77 | 61 | | |
| |||
89 | 73 | | |
90 | 74 | | |
91 | 75 | | |
92 | | - | |
| 76 | + | |
93 | 77 | | |
94 | 78 | | |
95 | 79 | | |
| |||
107 | 91 | | |
108 | 92 | | |
109 | 93 | | |
110 | | - | |
| 94 | + | |
111 | 95 | | |
112 | | - | |
| 96 | + | |
| 97 | + | |
113 | 98 | | |
114 | 99 | | |
115 | 100 | | |
| |||
129 | 114 | | |
130 | 115 | | |
131 | 116 | | |
132 | | - | |
| 117 | + | |
133 | 118 | | |
134 | 119 | | |
135 | | - | |
| 120 | + | |
136 | 121 | | |
137 | 122 | | |
138 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
| |||
218 | 220 | | |
219 | 221 | | |
220 | 222 | | |
| 223 | + | |
221 | 224 | | |
222 | 225 | | |
223 | 226 | | |
| |||
1305 | 1308 | | |
1306 | 1309 | | |
1307 | 1310 | | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
1308 | 1315 | | |
1309 | 1316 | | |
1310 | 1317 | | |
| |||
1424 | 1431 | | |
1425 | 1432 | | |
1426 | 1433 | | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
1427 | 1438 | | |
1428 | 1439 | | |
1429 | 1440 | | |
| |||
0 commit comments