Skip to content

Commit dc242b9

Browse files
committed
Actually test setCalendarStart in XIOS calendar test
1 parent 92a36a8 commit dc242b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/test/XiosCalendar_test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ MPI_TEST_CASE("TestXiosCalendar", 1)
5454
// --- Tests for calendar API
5555
// Calendar start
5656
REQUIRE(xiosHandler.getCalendarStart().format() == "2023-03-17T17:11:00Z"); // Set in config
57-
TimePoint start("2023-03-17T17:11:00Z");
57+
TimePoint start("2023-03-17T20:11:00Z");
5858
xiosHandler.setCalendarStart(start);
5959
REQUIRE(start == xiosHandler.getCalendarStart());
60-
REQUIRE(start.format() == "2023-03-17T17:11:00Z");
60+
REQUIRE(start.format() == "2023-03-17T20:11:00Z");
6161
// Timestep
6262
ModelMetadata& metadata = ModelMetadata::getInstance();
6363
REQUIRE(metadata.stepLength().seconds() == 3600.0); // Read from config
@@ -66,12 +66,12 @@ MPI_TEST_CASE("TestXiosCalendar", 1)
6666

6767
// --- Tests for getCurrentDate method
6868
REQUIRE(xiosHandler.getCalendarStep() == 0);
69-
REQUIRE(xiosHandler.getCurrentDate().format() == "2023-03-17T17:11:00Z");
69+
REQUIRE(xiosHandler.getCurrentDate().format() == "2023-03-17T20:11:00Z");
7070

7171
// -- Tests that the timestep is set up correctly
7272
xiosHandler.setCalendarStep(1);
7373
REQUIRE(xiosHandler.getCalendarStep() == 1);
74-
REQUIRE(xiosHandler.getCurrentDate().format() == "2023-03-17T18:11:00Z");
74+
REQUIRE(xiosHandler.getCurrentDate().format() == "2023-03-17T21:11:00Z");
7575

7676
xiosHandler.context_finalize();
7777
Finalizer::finalize();

0 commit comments

Comments
 (0)