[GitHub] [carbondata] qiuchenjian commented on a change in pull request #3152: [TestCase][HOTFIX] Added drop database in beforeEach to avoid exception

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[GitHub] [carbondata] qiuchenjian commented on a change in pull request #3152: [TestCase][HOTFIX] Added drop database in beforeEach to avoid exception

GitBox
qiuchenjian commented on a change in pull request #3152: [TestCase][HOTFIX] Added drop database in beforeEach to avoid exception
URL: https://github.com/apache/carbondata/pull/3152#discussion_r266696693
 
 

 ##########
 File path: integration/spark-common-test/src/test/scala/org/apache/carbondata/spark/testsuite/dblocation/DBLocationCarbonTableTestCase.scala
 ##########
 @@ -40,8 +40,9 @@ class DBLocationCarbonTableTestCase extends QueryTest with BeforeAndAfterAll {
 
   }
 
-  override def beforeAll {
+  override def beforeEach {
     sql("drop database if exists carbon cascade")
+    sql("drop database if exists carbon1 cascade")
 
 Review comment:
   This test case file has another database "carbon2", better to do the same operator
   Better to  delete "drop database" command in each test case

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[hidden email]


With regards,
Apache Git Services