From: DemeritCowboy Date: Sun, 18 Aug 2019 13:18:33 +0000 (-0400) Subject: more tolerance X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4f8b1006d462f260f9ca0c3b3c72b60dc7040d9f;p=civicrm-core.git more tolerance --- diff --git a/tests/phpunit/api/v3/AttachmentTest.php b/tests/phpunit/api/v3/AttachmentTest.php index 922efe3dd9..33bc8ec269 100644 --- a/tests/phpunit/api/v3/AttachmentTest.php +++ b/tests/phpunit/api/v3/AttachmentTest.php @@ -335,7 +335,7 @@ class api_v3_AttachmentTest extends CiviUnitTestCase { if ($field == 'url') { $this->assertEquals(substr($createResult['values'][$fileId][$field], 0, -15), substr($getResult['values'][$fileId][$field], 0, -15)); $this->assertEquals(substr($createResult['values'][$fileId][$field], -3), substr($getResult['values'][$fileId][$field], -3)); - $this->assertApproxEquals(substr($createResult['values'][$fileId][$field], -14, 10), substr($getResult['values'][$fileId][$field], -14, 10), 1); + $this->assertApproxEquals(substr($createResult['values'][$fileId][$field], -14, 10), substr($getResult['values'][$fileId][$field], -14, 10), 2); } else { $this->assertEquals($createResult['values'][$fileId][$field], $getResult['values'][$fileId][$field], "Expect field $field to match");