mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
Grant driver-specific API test tools access to KV offsets and ParticipantTestContext (#13023)
CHANGELOG_BEGIN CHANGELOG_END
This commit is contained in:
parent
cdd120dab9
commit
095a017a31
@ -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,
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user