From 978a671bf483fd0c619b32a0d3d8c833766d2057 Mon Sep 17 00:00:00 2001 From: Anna Smirnova <132938234+smirnovaae@users.noreply.github.com> Date: Fri, 13 Dec 2024 13:49:14 -0800 Subject: [PATCH] Fix intergration test (#1426) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 🎫 Ticket https://jira.cms.gov/browse/... ## 🛠 Changes Updated integration test for worker ## ℹ️ Context ## 🧪 Validation --- .../processor/coverage/CoverageCheckIntegrationTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/worker/src/test/java/gov/cms/ab2d/worker/processor/coverage/CoverageCheckIntegrationTest.java b/worker/src/test/java/gov/cms/ab2d/worker/processor/coverage/CoverageCheckIntegrationTest.java index f10e02dfa..571e68a22 100644 --- a/worker/src/test/java/gov/cms/ab2d/worker/processor/coverage/CoverageCheckIntegrationTest.java +++ b/worker/src/test/java/gov/cms/ab2d/worker/processor/coverage/CoverageCheckIntegrationTest.java @@ -238,12 +238,13 @@ void verifyCoverage_whenSomeCoverageMissing_fail() { @DisplayName("Verify coverage stops if some coverage periods change drastically") // @Test void verifyCoverage_whenCoverageUnstable_fail() { - ZonedDateTime dateTime = ZonedDateTime.now(); + ZonedDateTime dateTime = ZonedDateTime.now().withMonth(9).withDayOfMonth(1); createCoveragePeriods(dateTime); - contract.setAttestedOn(ZonedDateTime.now().toOffsetDateTime()); + contract.setAttestedOn(ZonedDateTime.now().withMonth(9).withDayOfMonth(1).toOffsetDateTime()); contractServiceStub.updateContract(contract); + Set tenK = new LinkedHashSet<>(); for (long idx = 0; idx < 10000; idx++) { tenK.add(createIdentifier(idx));