[KYUUBI #303][FOLLOWUP] Fix test

fix #305
Squashed commit of the following:

commit f67ca84bafcd7fa43ae62a13edc6b044e9e7916f
Author: ulysses-you <ulyssesyou18@gmail.com>
Date:   Tue Jan 26 20:36:10 2021 +0800

    init
This commit is contained in:
ulysses-you 2021-01-26 21:54:22 +08:00 committed by Kent Yao
parent d44afdb346
commit 05c64feaf2
No known key found for this signature in database
GPG Key ID: F7051850A0AF904D
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ class ServerableSuite extends KyuubiFunSuite {
test("invalid port") {
val conf = KyuubiConf().set(KyuubiConf.FRONTEND_BIND_PORT, 100)
val e = intercept[KyuubiException](new NoopServer().initialize(conf))
assert(e.getMessage === "Failed to initialize frontend service")
assert(e.getMessage.contains("Failed to initialize frontend service"))
assert(e.getCause.getMessage === "Invalid Port number")
}

View File

@ -60,7 +60,7 @@ class KyuubiServerSuite extends KyuubiFunSuite {
ignore("invalid port") {
val conf = KyuubiConf().set(KyuubiConf.FRONTEND_BIND_PORT, 100)
val e = intercept[KyuubiException](new KyuubiServer().initialize(conf))
assert(e.getMessage === "Failed to initialize frontend service")
assert(e.getMessage.contains("Failed to initialize frontend service"))
assert(e.getCause.getMessage === "Invalid Port number")
}
}