more tolerance
authorDemeritCowboy <demeritcowboy@hotmail.com>
Sun, 18 Aug 2019 13:18:33 +0000 (09:18 -0400)
committerDemeritCowboy <demeritcowboy@hotmail.com>
Sun, 18 Aug 2019 13:18:33 +0000 (09:18 -0400)
tests/phpunit/api/v3/AttachmentTest.php

index 922efe3dd9c4b14bc410b7230bfe339c36fbddd2..33bc8ec269194c4f61d10f9beb986f533986fc34 100644 (file)
@@ -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");