Christian Schwarz
2024-11-21 11:21:50 +01:00
parent e82deb2ccc
commit 3375f28990

View File

@@ -176,11 +176,10 @@ def test_getpage_merge_smoke(
#
# Sanity-checks on the collected data
#
def close_enough(a, b):
return (a / b > 0.99 and a / b < 1.01) and (b / a > 0.99 and b / a < 1.01)
# assert that getpage counts roughly match between compute and ps
assert close_enough(metrics.pageserver_getpage_count, metrics.compute_getpage_count)
assert metrics.pageserver_getpage_count == pytest.approx(
metrics.compute_getpage_count, rel=0.01
)
#
# Record the results