We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bc2eff commit e5ed096Copy full SHA for e5ed096
sql/core/src/test/scala/org/apache/spark/sql/streaming/StreamTest.scala
@@ -385,7 +385,12 @@ trait StreamTest extends QueryTest with SharedSQLContext with Timeouts {
385
.streamingQuery
386
// Wait until the initialization finishes, because some tests need to use `logicalPlan`
387
// after starting the query.
388
- currentStream.awaitInitialization(streamingTimeout.toMillis)
+ try {
389
+ currentStream.awaitInitialization(streamingTimeout.toMillis)
390
+ } catch {
391
+ case _: StreamingQueryException =>
392
+ // Ignore the exception. `StopStream` or `ExpectFailure` will catch it as well.
393
+ }
394
395
case AdvanceManualClock(timeToAdd) =>
396
verify(currentStream != null,
0 commit comments