diff --git a/kyuubi-common/src/test/scala/org/apache/kyuubi/KyuubiFunSuite.scala b/kyuubi-common/src/test/scala/org/apache/kyuubi/KyuubiFunSuite.scala index 58d28c88c..a9cab5f6a 100644 --- a/kyuubi-common/src/test/scala/org/apache/kyuubi/KyuubiFunSuite.scala +++ b/kyuubi-common/src/test/scala/org/apache/kyuubi/KyuubiFunSuite.scala @@ -25,6 +25,7 @@ import org.apache.log4j.spi.LoggingEvent import org.scalatest.{BeforeAndAfterAll, BeforeAndAfterEach, FunSuite, Outcome} import org.scalatest.concurrent.Eventually +import org.apache.kyuubi.config.KyuubiConf import org.apache.kyuubi.config.internal.Tests.IS_TESTING trait KyuubiFunSuite extends FunSuite @@ -36,6 +37,7 @@ trait KyuubiFunSuite extends FunSuite // scalastyle:on override def beforeAll(): Unit = { System.setProperty(IS_TESTING.key, "true") + System.setProperty(KyuubiConf.FRONTEND_BIND_HOST.key, "127.0.0.1") doThreadPostAudit() super.beforeAll() } diff --git a/kyuubi-common/src/test/scala/org/apache/kyuubi/service/FrontendServiceSuite.scala b/kyuubi-common/src/test/scala/org/apache/kyuubi/service/FrontendServiceSuite.scala index 8b7be9f68..fa243eb7e 100644 --- a/kyuubi-common/src/test/scala/org/apache/kyuubi/service/FrontendServiceSuite.scala +++ b/kyuubi-common/src/test/scala/org/apache/kyuubi/service/FrontendServiceSuite.scala @@ -37,7 +37,6 @@ class FrontendServiceSuite extends KyuubiFunSuite { protected val server = new NoopServer() protected val conf = KyuubiConf() - .set(KyuubiConf.FRONTEND_BIND_HOST, "127.0.0.1") .set(KyuubiConf.FRONTEND_BIND_PORT, 0) .set("kyuubi.test.server.should.fail", "false")