Skip to content

Commit

Permalink
Fixes the race condition that may cause test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
liancheng committed Oct 16, 2014
1 parent 044583a commit 489a97c
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,6 @@ class CliSuite extends FunSuite with BeforeAndAfterAll with Logging {
val process = (Process(command) #< queryStream).run(
ProcessLogger(captureOutput("stdout"), captureOutput("stderr")))

Future {
val exitValue = process.exitValue()
foundAllExpectedAnswers.tryFailure(
new SparkException(s"Spark SQL CLI process exit value: $exitValue"))
}

try {
Await.result(foundAllExpectedAnswers.future, timeout)
} catch { case cause: Throwable =>
Expand Down

0 comments on commit 489a97c

Please sign in to comment.