Skip to content

Commit df81086

Browse files
committed
Modify code style.
1 parent 846f83e commit df81086

File tree

1 file changed

+4
-4
lines changed
  • sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver

1 file changed

+4
-4
lines changed

sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/CliSuite.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import org.scalatest.{BeforeAndAfter, BeforeAndAfterAll, FunSuite}
3131
import org.apache.spark.Logging
3232
import org.apache.spark.util.Utils
3333

34-
class CliSuite extends FunSuite with BeforeAndAfter with BeforeAndAfterAll with Logging {
34+
class CliSuite extends FunSuite with BeforeAndAfter with Logging {
3535
val warehousePath = Utils.createTempDir()
3636
val metastorePath = Utils.createTempDir()
3737

@@ -47,9 +47,8 @@ class CliSuite extends FunSuite with BeforeAndAfter with BeforeAndAfterAll with
4747

4848
def runCliWithin(
4949
timeout: FiniteDuration,
50-
extraArgs: Seq[String] = Seq.empty
51-
)(
52-
queriesAndExpectedAnswers: (String, String)*) {
50+
extraArgs: Seq[String] = Seq.empty)(
51+
queriesAndExpectedAnswers: (String, String)*): Unit = {
5352

5453
val (queries, expectedAnswers) = queriesAndExpectedAnswers.unzip
5554
val cliScript = "../../bin/spark-sql".split("/").mkString(File.separator)
@@ -145,6 +144,7 @@ class CliSuite extends FunSuite with BeforeAndAfter with BeforeAndAfterAll with
145144
"SHOW TABLES;"
146145
-> "Time taken: "
147146
)
147+
148148
runCliWithin(1.minute, Seq("--database", "hive_test_db", "-e", "SHOW TABLES;"))(
149149
""
150150
-> "OK",

0 commit comments

Comments
 (0)