jbonofre opened a new pull request, #3104:
URL: https://github.com/apache/karaf/pull/3104

   Backport of #3103 (`bef4512c4c`) to `karaf-4.4.x`.
   
   ## Summary
   `EventLoggerTest.testUdp` took a port free for TCP, from a `ServerSocket`, 
and bound a `DatagramSocket` on it. A port free for TCP may be in use for UDP, 
so the test failed now and then with `java.net.BindException: Address already 
in use`, stopping the test job at `audit`. The socket is now bound on an 
ephemeral UDP port, given to the `UdpEventLogger`.
   
   The test is identical on `karaf-4.4.x`, and its CI runs the test job on 
`macos-latest` too, where the failure was seen on `main`.
   
   ## Testing
   - [x] `mvn test -pl audit -Dtest=EventLoggerTest` passes on `karaf-4.4.x` (6 
tests).


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to