From c228ecc2ef3ab0fcdb310212ac731e559c347dd4 Mon Sep 17 00:00:00 2001 From: Cheng Pan Date: Wed, 18 Aug 2021 09:23:01 +0800 Subject: [PATCH] [KYUUBI #946] [TEST] Fix version test ### _Why are the changes needed?_ Fix #944 ### _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/develop_tools/testing.html#running-tests) locally before make a pull request Closes #946 from pan3793/ver. Closes #946 81f69c8e [Cheng Pan] Fix version test Authored-by: Cheng Pan Signed-off-by: Cheng Pan --- kyuubi-common/src/test/scala/org/apache/kyuubi/UtilsSuite.scala | 2 -- 1 file changed, 2 deletions(-) diff --git a/kyuubi-common/src/test/scala/org/apache/kyuubi/UtilsSuite.scala b/kyuubi-common/src/test/scala/org/apache/kyuubi/UtilsSuite.scala index 50ec83ec9..d87c6b9af 100644 --- a/kyuubi-common/src/test/scala/org/apache/kyuubi/UtilsSuite.scala +++ b/kyuubi-common/src/test/scala/org/apache/kyuubi/UtilsSuite.scala @@ -119,8 +119,6 @@ class UtilsSuite extends KyuubiFunSuite { Utils.majorMinorVersion(HADOOP_COMPILE_VERSION)._1) assert(Utils.minorVersion(KYUUBI_VERSION) === Utils.majorMinorVersion(KYUUBI_VERSION)._2) - assert(Utils.shortVersion(KYUUBI_VERSION) === - KYUUBI_VERSION.stripSuffix("-SNAPSHOT")) intercept[IllegalArgumentException](Utils.shortVersion("-" + KYUUBI_VERSION)) intercept[IllegalArgumentException](Utils.majorMinorVersion("-" + KYUUBI_VERSION)) }