Skip to content

Commit d188dbc

Browse files
gnodetclaude
andcommitted
Fix AttachmentMtomChunkingTest port collision with AttachmentChunkingTest
Both tests have an inner class named DownloadServer and use allocatePort(DownloadServer.class). Since TestUtil stores ports under the simple class name, both tests get the same port, causing ListenerRegistrationException when the second test tries to publish its endpoint. Fix by using allocatePort(AttachmentMtomChunkingTest.class) to get a distinct port. Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent 382a6d9 commit d188dbc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/AttachmentMtomChunkingTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
import static org.junit.Assert.assertTrue;
4545

4646
public class AttachmentMtomChunkingTest extends AbstractAttachmentChunkingTest {
47-
private static final String PORT = allocatePort(DownloadServer.class);
47+
private static final String PORT = allocatePort(AttachmentMtomChunkingTest.class);
4848
private static final Logger LOG = LogUtils.getLogger(AttachmentMtomChunkingTest.class);
4949

5050
public static class DownloadServer extends AbstractBusTestServerBase {

0 commit comments

Comments
 (0)