[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:
parent
d44afdb346
commit
05c64feaf2
@ -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")
|
||||
}
|
||||
|
||||
|
||||
@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user