Tweak port usage to try and fix Windows CI build

pull/3986/merge
Phillip Webb 9 years ago
parent 676efe7ad6
commit 44c122307e

@ -223,7 +223,7 @@ public abstract class AbstractEmbeddedServletContainerFactoryTests {
@Test @Test
public void specificPort() throws Exception { public void specificPort() throws Exception {
AbstractEmbeddedServletContainerFactory factory = getFactory(); AbstractEmbeddedServletContainerFactory factory = getFactory();
int specificPort = SocketUtils.findAvailableTcpPort(40000); int specificPort = SocketUtils.findAvailableTcpPort(41000);
factory.setPort(specificPort); factory.setPort(specificPort);
this.container = factory this.container = factory
.getEmbeddedServletContainer(exampleServletRegistration()); .getEmbeddedServletContainer(exampleServletRegistration());

Loading…
Cancel
Save