Skip to content

Commit

Permalink
Fix MonotonicRecordTimeIT for pruned participants (#11423)
Browse files Browse the repository at this point in the history
Reading explicitly from ledger.begin causes the test to fail on a pruned
participant. The test framework automatically selects a ledger offset
observed at the start of the test anyway, so there's no need to
explicitly put ledger.begin as the starting offset for the checkpoints.

CHANGELOG_BEGIN
CHANGELOG_END
  • Loading branch information
gerolf-da authored Oct 27, 2021
1 parent 500e5b0 commit b412f71
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ final class MonotonicRecordTimeIT extends LedgerTestSuite {
_ <- Future.traverse(1 to Submissions) { _ =>
ledger.create(party, Dummy(party))
}
checkpoints <- ledger.checkpoints(Submissions, ledger.begin)(party)
checkpoints <- ledger.checkpoints(Submissions)(party)
} yield {
assertLength(s"At least $Submissions checkpoints available", Submissions, checkpoints)

Expand Down

0 comments on commit b412f71

Please sign in to comment.