This is an automated email from the ASF dual-hosted git repository.

tianlinliao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kyuubi.git


The following commit(s) were added to refs/heads/master by this push:
     new 3692e20b1 [KYUUBI #4876] fix Flaky test BackendServiceMetricSuite 
(#4924)
3692e20b1 is described below

commit 3692e20b1f6684062ea79787bdd0a757ea4ea9bb
Author: lightning_L <[email protected]>
AuthorDate: Mon Jun 5 18:59:09 2023 +0800

    [KYUUBI #4876] fix Flaky test BackendServiceMetricSuite (#4924)
    
    merging to master
---
 .../test/scala/org/apache/kyuubi/server/BackendServiceMetricSuite.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/kyuubi-server/src/test/scala/org/apache/kyuubi/server/BackendServiceMetricSuite.scala
 
b/kyuubi-server/src/test/scala/org/apache/kyuubi/server/BackendServiceMetricSuite.scala
index 9745917dd..112f9d26f 100644
--- 
a/kyuubi-server/src/test/scala/org/apache/kyuubi/server/BackendServiceMetricSuite.scala
+++ 
b/kyuubi-server/src/test/scala/org/apache/kyuubi/server/BackendServiceMetricSuite.scala
@@ -67,7 +67,7 @@ class BackendServiceMetricSuite extends WithKyuubiServer with 
HiveJDBCTestHelper
         val res = objMapper.readTree(Paths.get(reportPath.toString, 
"report.json").toFile)
         val timer = res.get("timers")
         assert(timer.get(BS_OPEN_SESSION).get("count").asInt() == 1)
-        assert(timer.get(BS_OPEN_SESSION).get("min").asInt() > 0)
+        assert(timer.get(BS_OPEN_SESSION).get("min").asDouble() > 0)
         val execStatementNode = timer.get(BS_EXECUTE_STATEMENT)
         assert(execStatementNode.get("count").asInt() == 3)
         assert(

Reply via email to