Skip to content

Commit

Permalink
Fix failing test case for recording extender.
Browse files Browse the repository at this point in the history
The test cases are designed to force the current year to 2022 for
consistency, but one test case was using the actual current year and
just started failing.  Fix this test case to use the "testing" current
year.
  • Loading branch information
linuxdude42 committed Jan 16, 2024
1 parent 7e6d176 commit dd11866
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,11 @@ void TestRecordingExtender::test_findKnownSport_data(void)
<< "baseball" << 1 << QStringList("mlb");
QTest::newRow("baseball2") << "MLB Baseball" << 2
<< "baseball" << 1 << QStringList("mlb");
// Must be current year.
// Must be current year. (For the purposes of these tests, the
// current year is 2022.)
QTest::newRow("baseball3") << "2020 World Series" << 1
<< "" << 0 << QStringList();
QTest::newRow("baseball4") << QString("%1 World Series")
.arg(QDate::currentDate().year()) << 1
QTest::newRow("baseball4") << "2022 World Series" << 1
<< "baseball" << 1 << QStringList("mlb");
QTest::newRow("football1") << "NFL Football" << 1
<< "football" << 1 << QStringList("nfl");
Expand Down

0 comments on commit dd11866

Please sign in to comment.