Grant driver-specific API test tools access to KV offsets and ParticipantTestContext (#13023)

CHANGELOG_BEGIN
CHANGELOG_END
This commit is contained in:
fabiotudone-da 2022-02-22 16:59:18 +01:00 committed by GitHub
parent cdd120dab9
commit 095a017a31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ private[testtool] object ParticipantTestContext {
* Each time a test case is run it receives a fresh instance of [[ParticipantTestContext]]
* (one for every used participant server).
*/
private[testtool] final class ParticipantTestContext private[participant] (
final class ParticipantTestContext private[participant] (
val ledgerId: String,
val endpointId: String,
val applicationId: String,

View File

@ -9,7 +9,7 @@ import java.nio.ByteBuffer
import com.daml.ledger.offset.Offset
import com.daml.ledger.participant.state.kvutils.KVOffset._
private[kvutils] final case class KVOffset(offset: Offset) {
final case class KVOffset(offset: Offset) {
lazy val (version, highest, middle, lowest) = {
val stream = new DataInputStream(offset.toInputStream)
val versionAndHighest = stream.readLong()