Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarea committed Dec 21, 2023
1 parent 13def21 commit 48e2b1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class MemberIdBundle(
* Expiry date of the bundle.
*/
public val expiryDate: ZonedDateTime
get() = memberCertificate.expiryDate
get() = memberCertificate.validityPeriod.endInclusive

/**
* Serialise the bundle.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class MemberIdBundleTest {
fun `Should output member expiry date`() {
val bundle = MemberIdBundle(dnssecChain, ORG_CERT, MEMBER_CERT)

bundle.expiryDate shouldBe MEMBER_CERT.expiryDate
bundle.expiryDate shouldBe MEMBER_CERT.validityPeriod.endInclusive
}
}

Expand Down

0 comments on commit 48e2b1c

Please sign in to comment.