From 934ec3fffcec010d40241c4ed6fc8ee9a009cc3e Mon Sep 17 00:00:00 2001 From: Min Zhao Date: Sat, 3 Jul 2021 20:02:37 +0800 Subject: [PATCH] [KYUUBI #743] fix using the ThreadAudit in the KyuubiFunSuite ### _Why are the changes needed?_ fix using the ThreadAudit in the KyuubiFunSuite. The method of doThreadPostAudit is used in the beforeAll and afterAll, I think the doThreadPreAudit should be used in the beforeAll. ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [ ] [Run test](https://kyuubi.readthedocs.io/en/latest/tools/testing.html#running-tests) locally before make a pull request Closes #743 from zhaomin1423/bug_fix. Closes #743 3980c2d4 [Min Zhao] fix using the ThreadAudit in the KyuubiFunSuite Authored-by: Min Zhao Signed-off-by: Cheng Pan --- .../src/test/scala/org/apache/kyuubi/KyuubiFunSuite.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 91ff1126e..c96baf68c 100644 --- a/kyuubi-common/src/test/scala/org/apache/kyuubi/KyuubiFunSuite.scala +++ b/kyuubi-common/src/test/scala/org/apache/kyuubi/KyuubiFunSuite.scala @@ -39,7 +39,7 @@ trait KyuubiFunSuite extends AnyFunSuite System.setProperty(KyuubiConf.FRONTEND_BIND_HOST.key, "127.0.0.1") override def beforeAll(): Unit = { System.setProperty(IS_TESTING.key, "true") - doThreadPostAudit() + doThreadPreAudit() super.beforeAll() }