From f85ac980c4e8d0b3baf468ab88db50f7e95bca6e Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Thu, 7 May 2020 17:14:21 -0400 Subject: [PATCH] fix typo in workaround --- tests/phpunit/CRM/Report/FormTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/CRM/Report/FormTest.php b/tests/phpunit/CRM/Report/FormTest.php index d68aa95bf6..60b3108e02 100644 --- a/tests/phpunit/CRM/Report/FormTest.php +++ b/tests/phpunit/CRM/Report/FormTest.php @@ -67,7 +67,7 @@ class CRM_Report_FormTest extends CiviUnitTestCase { */ public function testGetFromTo($expectedFrom, $expectedTo, $relative, $from, $to) { $obj = new CRM_Report_Form(); - if (date('H-i') === '00:00') { + if (date('Hi') === '0000') { $this->markTestIncomplete('The date might have changed since the dataprovider was called. Skip to avoid flakiness'); } list($calculatedFrom, $calculatedTo) = $obj->getFromTo($relative, $from, $to); -- 2.25.1