Skip to content
Closed
Prev Previous commit
Next Next commit
Fix pgSQL/text.sql
  • Loading branch information
wangyum committed Aug 20, 2019
commit 4845088d3f72f8cb9ee3b6718232bb18cc4739d5
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ class ThriftServerQueryTestSuite extends SQLQueryTestSuite {

private var hiveServer2: HiveThriftServer2 = _

override def beforeAll(): Unit = {
super.beforeAll()
override def beforeEach(): Unit = {
// Chooses a random port between 10000 and 19999
var listeningPort = 10000 + Random.nextInt(10000)

Expand All @@ -64,12 +63,9 @@ class ThriftServerQueryTestSuite extends SQLQueryTestSuite {
logInfo("HiveThriftServer2 started successfully")
}

override def afterAll(): Unit = {
try {
hiveServer2.stop()
} finally {
super.afterAll()
}
override def afterEach(): Unit = {
hiveServer2.stop()
hiveServer2 = null
}

override val isTestWithConfigSets = false
Expand Down