You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by "gnodet (via GitHub)" <gi...@apache.org> on 2026/03/11 11:53:52 UTC
Re: [PR] fix flaky test [cxf]
gnodet commented on PR #1517:
URL: https://github.com/apache/cxf/pull/1517#issuecomment-4038702827
We investigated the root cause of the flaky test as @reta suggested — CXF should return consistent WSDL output rather than the test adapting to inconsistency.
The issue is in `ServiceWSDLBuilder`: it uses a `HashMap` for namespace-to-prefix mapping (`ns2prefix`), which causes non-deterministic prefix assignment in generated WSDL. This leads to elements appearing with or without namespace prefixes (e.g., `<service>` vs `<wsdl:service>`) depending on `HashMap` iteration order.
A fix has been submitted in #2944 (switching to `LinkedHashMap` for deterministic ordering). Once that's merged, this flaky test issue should be resolved without needing to change the test itself.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@cxf.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org