Skip to content

Commit

Permalink
Ignore exception from awaitInitialization to avoid breaking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zsxwing committed Jan 13, 2017
1 parent 3bc2eff commit e5ed096
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,12 @@ trait StreamTest extends QueryTest with SharedSQLContext with Timeouts {
.streamingQuery
// Wait until the initialization finishes, because some tests need to use `logicalPlan`
// after starting the query.
currentStream.awaitInitialization(streamingTimeout.toMillis)
try {
currentStream.awaitInitialization(streamingTimeout.toMillis)
} catch {
case _: StreamingQueryException =>
// Ignore the exception. `StopStream` or `ExpectFailure` will catch it as well.
}

case AdvanceManualClock(timeToAdd) =>
verify(currentStream != null,
Expand Down

0 comments on commit e5ed096

Please sign in to comment.