-
Notifications
You must be signed in to change notification settings - Fork 38.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce TestSocketUtils as a replacement for SocketUtils #28210
Labels
in: test
Issues in the test module
status: superseded
An issue that has been superseded by another
type: enhancement
A general enhancement
Comments
sbrannen
added
in: test
Issues in the test module
type: enhancement
A general enhancement
labels
Mar 21, 2022
This was referenced Mar 21, 2022
Closed
Closed
2 tasks
Was this added to any 5.3.x version? |
No, this issue is still open and assigned to the |
onobc
added a commit
to onobc/spring-framework
that referenced
this issue
Sep 11, 2022
Spring boot 3 is coming and this would be really needed, any chance we can raise the priority? |
sbrannen
added
the
status: superseded
An issue that has been superseded by another
label
Nov 14, 2022
14 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
in: test
Issues in the test module
status: superseded
An issue that has been superseded by another
type: enhancement
A general enhancement
SocketUtils
was officially deprecated in 5.3.16 (#28052) and removed in 6.0 M3 (#28054); however, there is still need for a subset of this functionality in integration tests for testing scenarios in which it is not possible for the system under test to select its own random port (or rely on the operating system to provide an ephemeral port).We will therefore introduce a scaled down version in
spring-test
calledTestSocketUtils
, supporting retrieval of a single TCP port, and potentially with a simple retry mechanism that allows test code using the available port to be retried a given number of times if an exception is thrown.The text was updated successfully, but these errors were encountered: