Skip to content

Commit 33b7dba

Browse files
committed
Merge branch 'fix-ci' into 2.x
2 parents 5f633fc + 467d74f commit 33b7dba

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

integration-test/src/test/java/org/cloudfoundry/networking/v1/PoliciesTest.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ public final class PoliciesTest extends AbstractIntegrationTest {
5959
public void create() {
6060
String destinationApplicationName = this.nameFactory.getApplicationName();
6161
String sourceApplicationName = this.nameFactory.getApplicationName();
62-
Integer port = this.nameFactory.getPort();
62+
Integer startPort = this.nameFactory.getPort();
63+
Integer endPort = this.nameFactory.getPort();
6364

6465
this.spaceId
6566
.then(spaceId -> Mono.when(
@@ -72,8 +73,8 @@ public void create() {
7273
.destination(Destination.builder()
7374
.id(destinationApplicationId)
7475
.ports(Ports.builder()
75-
.end(port + 1)
76-
.start(port)
76+
.end(endPort)
77+
.start(startPort)
7778
.build())
7879
.protocol("tcp")
7980
.build())
@@ -89,7 +90,7 @@ public void create() {
8990
.single())
9091
.map(policy -> policy.getDestination().getPorts().getStart())
9192
.as(StepVerifier::create)
92-
.expectNext(port)
93+
.expectNext(startPort)
9394
.expectComplete()
9495
.verify(Duration.ofMinutes(5));
9596
}

integration-test/src/test/java/org/cloudfoundry/operations/RoutesTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public void create() {
140140
@Test
141141
public void createRouteTcpAssignedPort() {
142142
String domainName = this.nameFactory.getDomainName();
143-
Integer port = 61002;
143+
Integer port = this.nameFactory.getPort();
144144

145145
requestCreateSharedDomain(this.cloudFoundryOperations, domainName, DEFAULT_ROUTER_GROUP)
146146
.then(requestCreateRoute(this.cloudFoundryOperations, this.spaceName, domainName, port))

0 commit comments

Comments
 (0)