Skip to content

Commit

Permalink
Merge pull request #401 from pureconfig/fix-datetime-arb
Browse files Browse the repository at this point in the history
Fix DateTime arbitrary in tests
  • Loading branch information
ruippeixotog committed Jul 30, 2018
2 parents 7ca84e9 + caede24 commit 0e17f29
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -76,8 +76,8 @@ object ConfigurableSuite {
implicit val dateTimeArbitrary: Arbitrary[DateTime] =
Arbitrary(
for {
localDateTime <- localDateTimeArbitrary.arbitrary
zoneId <- zoneIdArbitrary.arbitrary
localDateTime <- localDateTimeArbitrary.arbitrary if !zoneId.isLocalDateTimeGap(localDateTime)
} yield localDateTime.toDateTime(zoneId))

implicit val periodArbitrary: Arbitrary[Period] =
Expand Down

0 comments on commit 0e17f29

Please sign in to comment.