Improve timeouts on test ports
This commit is contained in:
parent
7f85608a2e
commit
2e74ad72cb
|
@ -46,6 +46,7 @@ public class PortUtil {
|
||||||
int port;
|
int port;
|
||||||
do {
|
do {
|
||||||
server = new ServerSocket(0);
|
server = new ServerSocket(0);
|
||||||
|
server.setReuseAddress(true);
|
||||||
port = server.getLocalPort();
|
port = server.getLocalPort();
|
||||||
server.close();
|
server.close();
|
||||||
} while (!ourPorts.add(port));
|
} while (!ourPorts.add(port));
|
||||||
|
|
|
@ -32,9 +32,6 @@ import ca.uhn.fhir.rest.api.Constants;
|
||||||
import ca.uhn.fhir.rest.api.server.IBundleProvider;
|
import ca.uhn.fhir.rest.api.server.IBundleProvider;
|
||||||
import ca.uhn.fhir.util.PortUtil;
|
import ca.uhn.fhir.util.PortUtil;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by dsotnikov on 2/25/2014.
|
|
||||||
*/
|
|
||||||
public class OperationServerHl7OrgTest {
|
public class OperationServerHl7OrgTest {
|
||||||
private static CloseableHttpClient ourClient;
|
private static CloseableHttpClient ourClient;
|
||||||
private static FhirContext ourCtx;
|
private static FhirContext ourCtx;
|
||||||
|
|
Loading…
Reference in New Issue