Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Ignore exception from awaitInitialization to avoid breaking tests
  • Loading branch information
zsxwing committed Jan 13, 2017
commit e5ed096bbf719bcd34d36e31485f939b633f43f4
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