From f50b37d65625166ad67806ec184b1c8e65f4cedb Mon Sep 17 00:00:00 2001 From: zack-rma Date: Mon, 26 Jan 2026 16:33:44 -0800 Subject: [PATCH] Resolved failing location level tests. --- .../src/test/java/cwms/cda/api/LevelsControllerTestIT.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cwms-data-api/src/test/java/cwms/cda/api/LevelsControllerTestIT.java b/cwms-data-api/src/test/java/cwms/cda/api/LevelsControllerTestIT.java index e6e8a575c..d71062b28 100644 --- a/cwms-data-api/src/test/java/cwms/cda/api/LevelsControllerTestIT.java +++ b/cwms-data-api/src/test/java/cwms/cda/api/LevelsControllerTestIT.java @@ -1725,7 +1725,7 @@ void testStoreSeasonalLevel() throws Exception { ZonedDateTime levelDate = ZonedDateTime.ofInstant(Instant.parse("2024-01-01T00:00:00Z"), ZoneId.of("UTC")); List values = new ArrayList<>(); int numValues = 12; - for (int i = 1; i <= numValues; i++) { + for (int i = 0; i < numValues; i++) { values.add(new SeasonalValueBean.Builder() .withValue(i + 1.0) .withOffsetMonths(i) @@ -1790,7 +1790,7 @@ void testRetrieveAllSeasonalLevel() throws Exception { ZonedDateTime levelDate = ZonedDateTime.ofInstant(Instant.parse("2024-01-01T00:00:00Z"), ZoneId.of("UTC")); List values = new ArrayList<>(); int numValues = 12; - for (int i = 1; i <= numValues; i++) { + for (int i = 0; i < numValues; i++) { values.add(new SeasonalValueBean.Builder() .withValue(i + 1.0) .withOffsetMonths(i)