Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Renamed method
  • Loading branch information
Efim Poberezkin committed Apr 11, 2018
commit 89a1e11af0712c7557b45aad7bc2ffde95b529fc
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class EpochCoordinatorSuite

makeSynchronousCall()

verifyCommitHasntHappened(1)
verifyNoCommitFor(1)
}

test("single epoch, all but one reader partition has reported an offset") {
Expand All @@ -99,7 +99,7 @@ class EpochCoordinatorSuite

makeSynchronousCall()

verifyCommitHasntHappened(1)
verifyNoCommitFor(1)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest adding test cases where all but one writer partition has committed, or all but one reader partition has reported an offset. In those cases we should verify that the StreamWriter and query commits haven't happened.


test("consequent epochs, messages for epoch (k + 1) arrive after messages for epoch k") {
Expand Down Expand Up @@ -214,7 +214,7 @@ class EpochCoordinatorSuite
orderVerifier.verify(query).commit(epoch)
}

private def verifyCommitHasntHappened(epoch: Long): Unit = {
private def verifyNoCommitFor(epoch: Long): Unit = {
verify(writer, never()).commit(eqTo(epoch), any())
verify(query, never()).commit(epoch)
}
Expand Down