Skip to content

Commit

Permalink
chore: truncate time to microseconds precision
Browse files Browse the repository at this point in the history
Signed-off-by: Pat Losoponkul <[email protected]>
  • Loading branch information
Pat Losoponkul authored and Anton Baliasnikov committed Oct 23, 2023
1 parent 96dbd23 commit 91f12c9
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ import io.iohk.atala.mercury.protocol.connection.{ConnectionRequest, ConnectionR
import io.iohk.atala.mercury.protocol.invitation.v2.Invitation
import io.iohk.atala.shared.models.{WalletAccessContext, WalletId}
import zio.test.*
import zio.test.Assertion.*
import zio.{Cause, Exit, ZIO, ZLayer}

import java.time.Instant
import java.time.temporal.ChronoUnit
import java.util.UUID

object ConnectionRepositorySpecSuite {
Expand All @@ -19,7 +21,7 @@ object ConnectionRepositorySpecSuite {

private def connectionRecord = ConnectionRecord(
UUID.randomUUID,
Instant.now,
Instant.now.truncatedTo(ChronoUnit.MICROS),
None,
UUID.randomUUID().toString,
None,
Expand All @@ -34,7 +36,7 @@ object ConnectionRepositorySpecSuite {
None,
None,
maxRetries,
Some(Instant.now),
Some(Instant.now.truncatedTo(ChronoUnit.MICROS)),
None
).withTruncatedTimestamp()

Expand Down

0 comments on commit 91f12c9

Please sign in to comment.