Skip to content

Commit 264af44

Browse files
authored
Fix the nightly DB port conflict issue (#2620)
* Fix the nightly DB port conflict issue
1 parent c9ff4e2 commit 264af44

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

integration-tests/src/test/java/oracle/weblogic/kubernetes/ItConfigDistributionStrategy.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,12 @@ public void initAll(@Namespaces(2) List<String> namespaces) {
188188

189189

190190
//start two MySQL database instances
191-
createMySQLDB("mysqldb-1", "root", "root123", 0, domainNamespace, null);
191+
createMySQLDB("mysqldb-1", "root", "root123", getNextFreePort(), domainNamespace, null);
192192
mysqlDBPort1 = getMySQLNodePort(domainNamespace, "mysqldb-1");
193-
createMySQLDB("mysqldb-2", "root", "root456", 0, domainNamespace, null);
193+
logger.info("mysqlDBPort1 is: " + mysqlDBPort1);
194+
createMySQLDB("mysqldb-2", "root", "root456", getNextFreePort(), domainNamespace, null);
194195
mysqlDBPort2 = getMySQLNodePort(domainNamespace, "mysqldb-2");
196+
logger.info("mysqlDBPort2 is: " + mysqlDBPort2);
195197

196198
if (OKD) {
197199
mysql1SvcEndpoint = getMySQLSvcEndpoint(domainNamespace, "mysqldb-1");

0 commit comments

Comments
 (0)