From f4f7ea247c05a56a90e4a7f99249133c58c8c443 Mon Sep 17 00:00:00 2001 From: Vlad Lazar Date: Mon, 14 Oct 2024 16:50:12 +0100 Subject: [PATCH] tests: make size comparisons more lenient (#9388) The empirically determined threshold doesn't hold for PG 17. Bump the limit to stabilise ci. --- test_runner/regress/test_tenant_size.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_runner/regress/test_tenant_size.py b/test_runner/regress/test_tenant_size.py index 9ea09d10d7..b41f1709bd 100644 --- a/test_runner/regress/test_tenant_size.py +++ b/test_runner/regress/test_tenant_size.py @@ -479,9 +479,9 @@ def assert_size_approx_equal(size_a, size_b): """ # Determined empirically from examples of equality failures: they differ - # by page multiples of 8272, and usually by 1-3 pages. Tolerate 4 to avoid + # by page multiples of 8272, and usually by 1-3 pages. Tolerate 6 to avoid # failing on outliers from that observed range. - threshold = 4 * 8272 + threshold = 6 * 8272 assert size_a == pytest.approx(size_b, abs=threshold)