Improve timeouts on test ports

This commit is contained in:
James Agnew 2018-05-23 08:52:24 -04:00
parent 7f85608a2e
commit 2e74ad72cb
2 changed files with 1 additions and 3 deletions

View File

@ -46,6 +46,7 @@ public class PortUtil {
int port;
do {
server = new ServerSocket(0);
server.setReuseAddress(true);
port = server.getLocalPort();
server.close();
} while (!ourPorts.add(port));

View File

@ -32,9 +32,6 @@ import ca.uhn.fhir.rest.api.Constants;
import ca.uhn.fhir.rest.api.server.IBundleProvider;
import ca.uhn.fhir.util.PortUtil;
/**
* Created by dsotnikov on 2/25/2014.
*/
public class OperationServerHl7OrgTest {
private static CloseableHttpClient ourClient;
private static FhirContext ourCtx;