Skip to content

Commit

Permalink
chore(upgrades): Add a simple constructor test (#688)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmcintosh authored Nov 19, 2024
1 parent 609df99 commit 66a428a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ object AmazonTagExclusionPolicyTest {
@Test
fun `should handle high precision date times`() {
val now = LocalDateTime.ofInstant(Instant.from(DateTimeFormatter.ISO_INSTANT.parse("2024-11-15T23:42:18.592945345Z")), ZoneId.of("America/Chicago"))
AwsTestResource(
val resource = AwsTestResource(
id = "1",
creationDate = now.toString()
).withDetail(
Expand All @@ -140,6 +140,7 @@ object AmazonTagExclusionPolicyTest {
mapOf("expiration_time" to "10d")
)
)
resource.createTs shouldMatch equalTo(now.atZone(ZoneId.systemDefault()).toInstant().toEpochMilli())
}
}

Expand Down

0 comments on commit 66a428a

Please sign in to comment.