Skip to content

Commit

Permalink
Update CronScheduleTest.cpp
Browse files Browse the repository at this point in the history
Edited code that was causing test to fail.
  • Loading branch information
nkinar authored Aug 2, 2024
1 parent 6b96f53 commit 94835ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/CronScheduleTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ SCENARIO("Examples from README.md")
DT(2018_y / 03 / 1, hours{12}, minutes{13}, seconds{48})
}));

REQUIRE(test("0 * * * * ?", DT(2018_y / 03 / 1, hours{ 12 }, minutes{ 0 }, seconds{ 0 }),
REQUIRE(test("0 * * * * ?", DT(2018_y / 03 / 1, hours{ 12 }, minutes{ 0 }, seconds{ 10 }),
{
DT(2018_y / 03 / 1, hours{12}, minutes{1}, seconds{0}),
DT(2018_y / 03 / 1, hours{12}, minutes{2}, seconds{0}),
Expand Down Expand Up @@ -221,4 +221,4 @@ SCENARIO("Examples from README.md")
SCENARIO("Unable to calculate time point")
{
REQUIRE_FALSE(test( "0 0 * 31 FEB *", DT(2021_y / 1 / 1), DT(2022_y / 1 / 1)));
}
}

0 comments on commit 94835ea

Please sign in to comment.