Skip to content

Commit

Permalink
Fix o.a.s.streaming.CheckpointSuite.maintains rate controller
Browse files Browse the repository at this point in the history
  • Loading branch information
zsxwing committed Sep 23, 2015
1 parent 870b8a2 commit c4ee299
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -408,10 +408,14 @@ class CheckpointSuite extends TestSuiteBase {

ssc = new StreamingContext(checkpointDir)
ssc.start()
val outputNew = advanceTimeWithRealDelay(ssc, 2)

eventually(timeout(10.seconds)) {
assert(RateTestReceiver.getActive().nonEmpty)
}

advanceTimeWithRealDelay(ssc, 2)

eventually(timeout(10.seconds)) {
assert(RateTestReceiver.getActive().get.getDefaultBlockGeneratorRateLimit() === 200)
}
ssc.stop()
Expand Down

0 comments on commit c4ee299

Please sign in to comment.