Skip to content

Commit 489a97c

Browse files
committed
Fixes the race condition that may cause test failure
1 parent 044583a commit 489a97c

File tree

1 file changed

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

1 file changed

+0
-6
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,6 @@ class CliSuite extends FunSuite with BeforeAndAfterAll with Logging {
7878
val process = (Process(command) #< queryStream).run(
7979
ProcessLogger(captureOutput("stdout"), captureOutput("stderr")))
8080

81-
Future {
82-
val exitValue = process.exitValue()
83-
foundAllExpectedAnswers.tryFailure(
84-
new SparkException(s"Spark SQL CLI process exit value: $exitValue"))
85-
}
86-
8781
try {
8882
Await.result(foundAllExpectedAnswers.future, timeout)
8983
} catch { case cause: Throwable =>

0 commit comments

Comments
 (0)