diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2020-10-30 05:16:25 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-30 05:16:25 +0300 |
commit | a0d6ae0f8e533f681dd96817b78e0d717ac40ca5 (patch) | |
tree | 4ed0ce421f50a27e9464a77fe3d1825ae0e5b9f0 /tests | |
parent | 6ed004b76dc2d35722c76610e93ed8370f044fdb (diff) |
fix test (#16632)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/PHPUnit/Integration/CronArchive/QueueConsumerTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/PHPUnit/Integration/CronArchive/QueueConsumerTest.php b/tests/PHPUnit/Integration/CronArchive/QueueConsumerTest.php index eab8866ba5..0d92c62dbe 100644 --- a/tests/PHPUnit/Integration/CronArchive/QueueConsumerTest.php +++ b/tests/PHPUnit/Integration/CronArchive/QueueConsumerTest.php @@ -499,11 +499,11 @@ class QueueConsumerTest extends IntegrationTestCase $archiveTable = ArchiveTableCreator::getNumericTable(Date::factory('2020-03-30')); Db::query("INSERT INTO $archiveTable (idarchive, idsite, period, date1, date2, name, value, ts_archived) VALUES (?, ?, ?, ?, ?, ?, ?, ?)", [ - 1, 1,2, '2020-03-30', '2020-04-05', 'done', ArchiveWriter::DONE_INVALIDATED, $tsArchived + 1, 1,2, '2020-03-30', '2020-04-05', 'done', ArchiveWriter::DONE_OK, $tsArchived ]); $result = $queueConsumer->usableArchiveExists($invalidation); - $this->assertTrue($result); + $this->assertEquals('2020-04-04 23:58:20', $result); } public function test_canSkipArchiveBecauseNoPoint_returnsFalseIfDateRangeHasVisits_AndPeriodIncludesToday_AndOnlyExistingArchiveIsRecentButPartial() |