Skip to content

Commit fffc51c

Browse files
committed
Revert "Remove last remaining sleep() call"
This reverts commit dbb8247.
1 parent dbb8247 commit fffc51c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

streaming/src/test/scala/org/apache/spark/streaming/CheckpointSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ class CheckpointSuite extends TestSuiteBase {
372372
}
373373
clock.addToTime(batchDuration.milliseconds)
374374
waiter.waitForTotalBatchesStarted(3, batchDuration * 5)
375-
assert(waiter.getNumCompletedBatches === 2)
375+
Thread.sleep(1000) // To wait for execution to actually begin
376376
logInfo("Output after first start = " + outputStream.output.mkString("[", ", ", "]"))
377377
assert(outputStream.output.size > 0, "No files processed before restart")
378378
ssc.stop()

0 commit comments

Comments
 (0)