Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tdas committed Feb 10, 2016
1 parent 1902593 commit 9caec83
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sql/core/src/test/scala/org/apache/spark/sql/StreamTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,8 @@ trait StreamTest extends QueryTest with Timeouts {
verify(!currentStream.isActive,
"query.isActive() is false even after stopping")
verify(currentStream.exception.isEmpty,
"query.exception() is not empty after clean stop")
s"query.exception() is not empty after clean stop: " +
currentStream.exception.map(_.toString()).getOrElse(""))
} catch {
case _: InterruptedException =>
case _: org.scalatest.exceptions.TestFailedDueToTimeoutException =>
Expand Down Expand Up @@ -434,7 +435,8 @@ trait StreamTest extends QueryTest with Timeouts {
case r if r < 0.7 => // AddData
addRandomData()

case _ => // StartStream
case _ => // StopStream
addCheck()
actions += StopStream
running = false
}
Expand Down

0 comments on commit 9caec83

Please sign in to comment.