Skip to content

Commit

Permalink
Small changes to see if it helps fixing #895
Browse files Browse the repository at this point in the history
  • Loading branch information
ennru committed Nov 20, 2019
1 parent acb2497 commit f050c56
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ class CommittingWithMockSpec(_system: ActorSystem)
mock.enqueue(msgs.map(toRecord))

probe.request(count.toLong)
val done = Future.sequence(probe.expectNextN(count.toLong).map(_.committableOffset.commitInternal()))
val allCommits = Future.sequence(probe.expectNextN(count.toLong).map(_.committableOffset.commitInternal()))

withClue("the commits are aggregated to a low number of calls to commitAsync:") {
awaitAssert {
Expand All @@ -226,8 +226,8 @@ class CommittingWithMockSpec(_system: ActorSystem)
case (offsets, callback) => callback.onComplete(offsets.asJava, null)
}

Await.result(done, remainingOrDefault)
Await.result(control.shutdown(), remainingOrDefault)
allCommits.futureValue should have size (count.toLong)
control.shutdown().futureValue shouldBe Done
}

it should "support commit batching" in assertAllStagesStopped {
Expand Down

0 comments on commit f050c56

Please sign in to comment.