From 2a25dcc00fb7a574fbf307cb976fe03bd22332e8 Mon Sep 17 00:00:00 2001 From: Brian Park Date: Thu, 15 Jun 2023 09:39:19 -0700 Subject: [PATCH] tests: fix tests after changing requested untilYear to 2200 from 10000 --- tests/CompleteBrokerTest/CompleteBrokerTest.ino | 2 +- tests/ExtendedBrokerTest/ExtendedBrokerTest.ino | 2 +- tests/ExtendedZoneProcessorTest/ExtendedZoneProcessorTest.ino | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/CompleteBrokerTest/CompleteBrokerTest.ino b/tests/CompleteBrokerTest/CompleteBrokerTest.ino index 775c0d2b1..053872522 100644 --- a/tests/CompleteBrokerTest/CompleteBrokerTest.ino +++ b/tests/CompleteBrokerTest/CompleteBrokerTest.ino @@ -88,7 +88,7 @@ test(CompleteBrokerTest, ZoneInfoBroker) { assertEqual("America/Los_Angeles", info.name()); assertEqual((uint32_t) 0xb7f7e8f2, info.zoneId()); assertEqual(1980, info.zoneContext().startYear()); - assertEqual(10000, info.zoneContext().untilYear()); + assertEqual(2200, info.zoneContext().untilYear()); assertEqual(1980, info.zoneContext().startYearAccurate()); assertEqual(ZoneContext::kMaxUntilYear, info.zoneContext().untilYearAccurate()); diff --git a/tests/ExtendedBrokerTest/ExtendedBrokerTest.ino b/tests/ExtendedBrokerTest/ExtendedBrokerTest.ino index af6f044dd..82a323d35 100644 --- a/tests/ExtendedBrokerTest/ExtendedBrokerTest.ino +++ b/tests/ExtendedBrokerTest/ExtendedBrokerTest.ino @@ -88,7 +88,7 @@ test(ExtendedBrokerTest, ZoneInfoBroker) { assertEqual("America/Los_Angeles", info.name()); assertEqual((uint32_t) 0xb7f7e8f2, info.zoneId()); assertEqual(1980, info.zoneContext().startYear()); - assertEqual(10000, info.zoneContext().untilYear()); + assertEqual(2200, info.zoneContext().untilYear()); assertEqual(1980, info.zoneContext().startYearAccurate()); assertEqual(ZoneContext::kMaxUntilYear, info.zoneContext().untilYearAccurate()); diff --git a/tests/ExtendedZoneProcessorTest/ExtendedZoneProcessorTest.ino b/tests/ExtendedZoneProcessorTest/ExtendedZoneProcessorTest.ino index 65a16365b..8e72106e0 100644 --- a/tests/ExtendedZoneProcessorTest/ExtendedZoneProcessorTest.ino +++ b/tests/ExtendedZoneProcessorTest/ExtendedZoneProcessorTest.ino @@ -919,7 +919,7 @@ test(ExtendedZoneProcessorTest, findByEpochSeconds_outOfBounds) { ZoneContextBroker zoneContextBroker(&kZoneContext); assertEqual(1980, zoneContextBroker.startYear()); - assertEqual(10000, zoneContextBroker.untilYear()); + assertEqual(2200, zoneContextBroker.untilYear()); // 1970 > LocalDate::kMinYear so dt is valid, and dt = OffsetDateTime::forComponents(1970, 3, 11, 1, 59, 59,