yaooqinn commented on code in PR #5675:
URL: https://github.com/apache/kyuubi/pull/5675#discussion_r1390561105
##########
kyuubi-server/src/test/scala/org/apache/kyuubi/server/api/v1/SessionsResourceSuite.scala:
##########
@@ -97,11 +101,15 @@ class SessionsResourceSuite extends KyuubiFunSuite with
RestFrontendTestHelper {
response =
webTarget.path(s"api/v1/sessions/$sessionHandle").request().delete()
assert(200 == response.getStatus)
+ // because delete is a asynchronous operation, we need sleep to
+ // make sure the delete operation process complete
+ Thread.sleep(3000)
Review Comment:
use org.scalatest.concurrent.Eventually#eventually instead of Thread.sleep
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]