Commit ee1e790b950 for woocommerce

commit ee1e790b9504f8740c4cdf7f15cefafc9239f948
Author: Justin P <228780+layoutd@users.noreply.github.com>
Date:   Thu Dec 3 16:40:29 2026 +0100

    Fix intermittent products report refund test failure (#71807)

    * Allow a float tolerance in the products report partial-then-full refund test

    * Add changelog entry for the products report refund test fix

diff --git a/plugins/woocommerce/changelog/fix-flaky-products-report-refund-test b/plugins/woocommerce/changelog/fix-flaky-products-report-refund-test
new file mode 100644
index 00000000000..7436e8d3227
--- /dev/null
+++ b/plugins/woocommerce/changelog/fix-flaky-products-report-refund-test
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Fix an intermittent Analytics products report refund test; no production change.
diff --git a/plugins/woocommerce/tests/legacy/unit-tests/woocommerce-admin/reports/class-wc-tests-reports-products.php b/plugins/woocommerce/tests/legacy/unit-tests/woocommerce-admin/reports/class-wc-tests-reports-products.php
index 14f8c611077..984e309ef3a 100644
--- a/plugins/woocommerce/tests/legacy/unit-tests/woocommerce-admin/reports/class-wc-tests-reports-products.php
+++ b/plugins/woocommerce/tests/legacy/unit-tests/woocommerce-admin/reports/class-wc-tests-reports-products.php
@@ -524,7 +524,8 @@ class WC_Admin_Tests_Reports_Products extends WC_Unit_Test_Case {
 		);

 		$this->assertSame( 0, (int) $data->data[0]['items_sold'] );
-		$this->assertEquals( 0.0, $data->data[0]['net_revenue'] );
+		// Each row is stored to the cent, but the database adds doubles in row order, which can leave a residue such as -1.8e-15.
+		$this->assertEqualsWithDelta( 0.0, $data->data[0]['net_revenue'], 0.000001 );
 	}

 	/**