Skip to content

Commit dbb8247

Browse files
committed
Remove last remaining sleep() call
1 parent 566a63f commit dbb8247

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-
Thread.sleep(1000) // To wait for execution to actually begin
375+
assert(waiter.getNumCompletedBatches === 2)
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)