From 9986da05efef2aa2559061d1de6306b15bb9ab32 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sun, 26 Mar 2023 11:51:22 +1300 Subject: [PATCH] Fix intermittant test fail --- tests/phpunit/CRM/Member/Form/MembershipTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/CRM/Member/Form/MembershipTest.php b/tests/phpunit/CRM/Member/Form/MembershipTest.php index f092f0484c..96a6f5d247 100644 --- a/tests/phpunit/CRM/Member/Form/MembershipTest.php +++ b/tests/phpunit/CRM/Member/Form/MembershipTest.php @@ -1248,7 +1248,7 @@ Expires: ', $this->assertEquals(2, $lineItemResult['count']); $discountedItems = 0; foreach ($lineItemResult['values'] as $lineItem) { - $this->assertEquals($lineItem['line_total'] * .1, $lineItem['tax_amount']); + $this->assertEquals(round($lineItem['line_total'] * .1, 2), $lineItem['tax_amount']); if (CRM_Utils_String::startsWith($lineItem['label'], 'Long Haired Goat')) { $this->assertEquals(15.0, $lineItem['line_total']); $this->assertEquals('Long Haired Goat - one leg free!', $lineItem['label']); -- 2.25.1