diff --git a/tests/flink-it/src/test/scala/org/apache/celeborn/tests/flink/HybridShuffleWordCountTest.scala b/tests/flink-it/src/test/scala/org/apache/celeborn/tests/flink/HybridShuffleWordCountTest.scala index b174914efb9..9171323860a 100644 --- a/tests/flink-it/src/test/scala/org/apache/celeborn/tests/flink/HybridShuffleWordCountTest.scala +++ b/tests/flink-it/src/test/scala/org/apache/celeborn/tests/flink/HybridShuffleWordCountTest.scala @@ -50,7 +50,7 @@ class HybridShuffleWordCountTest extends AnyFunSuite with Logging with MiniClust "celeborn.master.host" -> "localhost", "celeborn.master.port" -> "9097") val workerConf = Map("celeborn.master.endpoints" -> "localhost:9097") - workers = setUpMiniCluster(masterConf, workerConf)._2 + workers = setupMiniClusterWithRandomPorts(masterConf, workerConf)._2 } override def afterAll(): Unit = { diff --git a/worker/src/test/scala/org/apache/celeborn/service/deploy/MiniClusterFeature.scala b/worker/src/test/scala/org/apache/celeborn/service/deploy/MiniClusterFeature.scala index bf5994527c0..3fd40728492 100644 --- a/worker/src/test/scala/org/apache/celeborn/service/deploy/MiniClusterFeature.scala +++ b/worker/src/test/scala/org/apache/celeborn/service/deploy/MiniClusterFeature.scala @@ -247,7 +247,7 @@ trait MiniClusterFeature extends Logging { workerInfos.keySet } - def setUpMiniCluster( + private def setUpMiniCluster( masterConf: Map[String, String] = null, workerConf: Map[String, String] = null, workerNum: Int = 3): (Master, collection.Set[Worker]) = {